thinger-io / Arduino-Library

IOTMP Arduino Library for connecting devices to thinger.io #IoT
https://thinger.io
MIT License
114 stars 66 forks source link

CA_ROOT_CERTIFICATE defined as a global variable #41

Open csgregg opened 2 years ago

csgregg commented 2 years ago

CA_ROOT_CERTIFICATE is defined as a global in ThingerClient.h, so makes the library difficult to use when needing to add to multiple files in the same build. Possible solutions - 1) change CA_ROOT_CERTIFICATE to a #define instead of a global variable. 2) pass the cert in the constructor and let the user define the correct cert...