I am currently developing on an ESP8266 in order to interact with the IoT Central devices. I would like to fetch, via HTTPS, telemetry, and parameters of certain Devices from the IoT Central REST API.
However, there are no official or concrete libraries on how to do so (examples, code samples, etc). When using provided examples of Arduino httpClient or ESPWifi libraries, it always generates an error due to the authentication barrier.
The header ''Authorization: SAS Token...'' prior to the GET command also didn't work.
@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
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;