![]() ![]() If (args.length > 0) remoteIPaddress = (args) // get IPaddress get remote IP address and port from command line parameters Public UDPchat(String args) throws Exception constructor, parameter is command line parameters Private final static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) ![]() remote IP and port are specified via command line - default IP is 127.0.0.1 (i.e. - will also wait for datagrams and display contents - given remote IP address can send strings using UDP datagrams in java // UDPchat.java - simple peer-to-peer chat program using UDP Perhaps test with a simple UDP server firsy, e.g. Tcp Write(tcp://192.168.0.15:9091/state=play) īut sadly I know it and server is some media server, not OP's implementation Is there anyone who can give me a hint on where to start reading or tell me if this is too complicated for me. I have understood that i shall include the Ethernet library and how to set the mac and ipadress for the arduino but then I am totally lost. ![]() (tcp://192.168.0.15:9091/state=play)Īnd a button connected to pin nr 8 and + 5v I have also a 10k resistor between pin nr8 and ground. The goal is to Control the play function in a mediaplayer by sending a command. My task is to try to send a udp or preferable a tcp packet from my arduino hardware when I push a triggerbutton. I have spent the whole day trying to get some examples that I can start from but i do not understand where to begin. I am a real roockie on this but I have managed to implement arduino in a few simple projects so far by reading tutorials and examples but now I am really stuck. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |