Hi,
Use the Postman client for test purpose to see that your GET request will work.
The following screen snippet shows an example for getting a telemetry data:
Note, that the Authorization header is the API token from the IoT Central App.
Thanks
Roman
@Johnson Yang , I originally tried with multiple libraries example but most didn't have a proper function to add the headers. I then recently tried with the link you just provided but a lot of
Occured with the WiFi101 library
EX:
In file included from C:\Users\kizit\OneDrive - Concordia University - Canada\Documents\Arduino\libraries\WiFi101\src/common/include/nm_common.h:45:0,
from C:\Users\kizit\OneDrive - Concordia University - Canada\Documents\Arduino\libraries\WiFi101\src/driver/include/m2m_wifi.h:53,
from C:\Users\kizit\OneDrive - Concordia University - Canada\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:32,
from D:\Documents\Work\CGI - IoT Engineer\ESP8266\Azure Connection\REST APIs\tests\tests.ino:14:
C:\Users\kizit\OneDrive - Concordia University - Canada\Documents\Arduino\libraries\WiFi101\src/bsp/include/nm_bsp.h:133:22: error: conflicting declaration 'typedef long int sint32'
typedef signed long sint32;