04-16-2024 07:50 AM
Hello, my team has encountered challenges in establishing communication between the Arduino Nano 33 IoT and SystemLink. We are using a virtual computer to host the SystemLink web server, which was developed by our IT team.
Initially, we successfully communicated between the ESP32 and SystemLink using the HTTP API reference, focusing on updating tag values, specifically the POST: /v2/update-current-values endpoint.
Here is the function we created on esp32 using HTTPclient.h library as well as ArduinoJson.h:
However, the Arduino Nano 33 IoT does not utilize the same libraries as the ESP32. While we have successfully communicated with Google using GET requests and tested simple POST requests using Postman, we encountered difficulties when attempting to send multiple headers and communicate with our own server. We have tried numerous libraries and various methods of sending data; however, none of them have proven effective. Any suggestions would be greatly appreciated. Thank you in advance.
For example, when using ArduinoHttpClient.h and ArduinoJson.h on the Nano 33, we frequently encounter -1 and -2 (more often) errors.