adafruit / adafruit/Adafruit_IO_Arduino
Ability to pass in or override the adafruit.io hostname
- Dominant language
- C++
- Stars
- 222
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the AdafruitIO_ESP8266 class and its constructor, then inspect how the mqtt and http client objects use _host, _host_port, and the hardcoded MQTT port. Add a runtime way to provide these connection values and verify that custom host and port settings are used when clients are created.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot, networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100