Home Forum Software How to upload to uRadmonitor from (Arduino) ESP32? Reply To: How to upload to uRadmonitor from (Arduino) ESP32?

#28857
Wolferl
Moderator

Hi,

I am by no means a JSON guy, but should that code:

  String ptr = "GET /data.uradmonitor.com/api/v1/upload/exp/01/";
        ptr += "X-User-id:%s\r\nX-User-hash:%s\r\nX-Device-id:%08lX\r\n";
        ptr += USER_ID;
        ptr += USER_KEY;
        ptr += "0";

more read like this?

  String ptr = "GET /data.uradmonitor.com/api/v1/upload/exp/01/\r\n";
        ptr += "X-User-id:" USER_ID "\r\nX-User-Hash:" USER_KEY "\r\nX-Device-id:" DEVICE_ID "\r\n";

See the CRLF at the GET address end, plus the values inserted at the correct places.
Also you’ll probably need to supply a correct device id, 0 will not do. You’ll need something like 0x1300xxxx for a KIT1 compatible device.

HTH,
Wolferl