adafruit / Adafruit_IO_Arduino

Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
Other
208 stars 108 forks source link

Ability to pass in or override the adafruit.io hostname #163

Open edmaher opened 1 year ago

edmaher commented 1 year ago

In the AdafruitIO_ESP8266 class, the constructor creates the mqtt and http client objects with reference to the _host, _host_port members, and uses a hardcoded value for the mqtt port There is no ability to set or override these values in the constructor. Ideally, there would be a second constructor that allows these to be set, or for the constructor to have additional parameters.

Other ideas are to allow the developer to use preprocessor defined values that can be set in the user's codebase, however, ability to set these at runtime is preferred.