adafruit / Adafruit_IO_Arduino

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

Feed names' case-sensitive during publish #123

Closed phord closed 4 years ago

phord commented 4 years ago

The docs say the feednames are case-insensitive, but the code in AdafruitIO_Group::getFeed searches for the feednames using case-sensitive strcmp. This means I could get unexpected results if I publish to "FOO" and to "foo" in the same message. This weird different-case scenario also happens if IO messages are showing up in my group feed as in #122 as well.

phord commented 4 years ago

After reading this article about naming things I can see I am confusing feed names and feed keys.

Maybe my real problem is just that #122 is causing my Group data list to be populated with key-names where I am expecting feed-names.

Let me close this while I try to sort out what's really expected here.