Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO_HTTP: Support creating group data #97

Open
VictorioBerra opened this issue Mar 14, 2023 · 0 comments
Open

IO_HTTP: Support creating group data #97

VictorioBerra opened this issue Mar 14, 2023 · 0 comments

Comments

@VictorioBerra
Copy link

Hello,

Can we add support for this API? https://io.adafruit.com/api/docs/#create-group-data

Usage would be:

weather_payload = {
    'feeds': [ 
      { 'key': "temp-feed", 'value': 1 },
      { 'key': "humid-feed", 'value': 2 } 
    ] 
}

adafruit_io_http_client.send_data("s3-1-battery", weather_payload, is_group = True)

Right now, the samples only show using MQTT to publish to a group but they just call publish twice, the group key is not even used https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO/blob/main/examples/adafruit_io_mqtt/adafruit_io_groups.py#L108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant