stp Active Member Licensed User Longtime User Jun 2, 2016 #1 Have three devices with ethernet shield and mp3 module. Now i want to control them through ethernet with my android phone What is the best solution ? Should i use udp to control them ? (want to control the mp3 tracks) They are on same network. I am new on B4r Thank you?
Have three devices with ethernet shield and mp3 module. Now i want to control them through ethernet with my android phone What is the best solution ? Should i use udp to control them ? (want to control the mp3 tracks) They are on same network. I am new on B4r Thank you?
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2016 #2 It depends. Is there any PC or Android or Raspberry Pi that is always running and connected to this network? If yes then you can use MQTT. It will be simpler and more reliable. UDP is also a good option. Just make sure to assign static IP addresses to each of the Arduinos. Upvote 0
It depends. Is there any PC or Android or Raspberry Pi that is always running and connected to this network? If yes then you can use MQTT. It will be simpler and more reliable. UDP is also a good option. Just make sure to assign static IP addresses to each of the Arduinos.
stp Active Member Licensed User Longtime User Jun 3, 2016 #3 Erel said: It depends. Is there any PC or Android or Raspberry Pi that is always running and connected to this network? If yes then you can use MQTT. It will be simpler and more reliable. UDP is also a good option. Just make sure to assign static IP addresses to each of the Arduinos. Click to expand... That means i must compile for each ardruino separate because of the static ip ? Upvote 0
Erel said: It depends. Is there any PC or Android or Raspberry Pi that is always running and connected to this network? If yes then you can use MQTT. It will be simpler and more reliable. UDP is also a good option. Just make sure to assign static IP addresses to each of the Arduinos. Click to expand... That means i must compile for each ardruino separate because of the static ip ?
stp Active Member Licensed User Longtime User Jun 3, 2016 #4 Erel is there any example, i would like to send some asci codes to communicate between arduino and android. Upvote 0
Erel is there any example, i would like to send some asci codes to communicate between arduino and android.
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2016 #5 Start with this B4R - B4J example: https://www.b4x.com/android/forum/threads/ethernet-network-tutorial.65664/ You can implement similar code in B4A. Upvote 0
Start with this B4R - B4J example: https://www.b4x.com/android/forum/threads/ethernet-network-tutorial.65664/ You can implement similar code in B4A.