Hi sorry if this is a double posting. I have seen similar on the forum with no resolution.
I am trying to connect an Arduino Uno using the WifiShield. I have added a device etc to the console and I am using the example WifiShield program that comes with the Thinger Arduino Library. The device connects to the Wifi network but is failing to connect to iot.thinger.io. When I debug I get the following multiple times
[_SOCKET] Connect[_SOCKET] Connecting to iot.thinger.io:25200…
[_SOCKET] Using secure TLS/SSL connection: no
I have checked connectivity from my network to iot.thinger.io port 25200 by telneting to that port and it works fine. My initial thought was that I had an error in the credentials I was sending but I have checked username, device ID and device credential multiple times. I have also deleted and re-added the device multiple times. Any ideas, the debug of the connection gives no clues as to what is failing at the server.
thanks
Ivan
we are aware that Arduino Wifi shield has some problems with the stock libraries. We need more testing, but it seems that the Wifi shield library is doing some strange things with the memory and corrupts data. We need more digging on that.
Meanwhile, you can try to manually install the latest thinger library version by downloading it from master. After manual install, it should appear as version 2.8.0 in the library manager. Then, try this code to force thinger libraries to use static allocated data (where the Wifi Shield library does not corrupt the information). Basically defining the THINGER_USE_STATIC_MEMORY before any other include.