0

I'm currently trying to make my Arduino UNO WiFi work as a TCP host, so I can send him a TCP message and it sends a response.

I had no problem doing this on the Arduino Galileo Gen 2 using the EthernetServer, but since this one is using WiFi, EthernetServer isn't an option.

I can, however, run a web server, but that's not what I want.

So how do I make the Arduino receive, handle and respond to sent TCP/IP messages?

-1

Ethernet and wifi are basically the same thing but only joinig Ethernet is codewise different than joining a wifi address and thus these two need 100% different code because wifi and Ethernet are a different thing.

See, compare codes in below links, and you see the difference is on making up the level 1 connection, and tcp and ip on 2 and 3 do not change.

https://github.com/evothings/evothings-examples/blob/master/examples/arduino-led-onoff-tcp/arduinoethernet/arduinoethernet/arduinoethernet.ino

https://github.com/evothings/evothings-examples/blob/master/examples/arduino-led-onoff-tcp/arduinowifi/arduinowifi/arduinowifi.ino

  • Thank you, however I'm still getting the "WiFi shield is not present". May I ask you how I can fix that issue? I've tried a lot of things but I still get that error. And is it still neccesary to give the SSID and password if the Arduino Uno WiFi is already connected to the wifi? – Mason Mar 10 '17 at 17:56
  • To initialize the used connection object, I suppose yes. – mico Mar 10 '17 at 18:02
  • Okay thanks. Now I'll try to fix the "WiFi shield is not present" message – Mason Mar 10 '17 at 18:03
2

For Arduino UNO Wifi, you have to use library "UnoWiFi-Developer-Edition-Lib". You can directly download and install it through library manager or can get it offline through the following link "https://github.com/arduino-libraries/UnoWiFi-Developer-Edition-Lib".

Hope this can help you.

  • this 'late' answer is ok, only there is now a better option then the slow UnoWiFi-Developer-Edition-Lib. the new library for Uno WiFi is UnoWiFiDevEdSerial1 library – Juraj Mar 19 '18 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.