-
Notifications
You must be signed in to change notification settings - Fork 31
Create send_batch_data method #70
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
Create send_batch_data method #70
Conversation
Additionally, Define the data variable as an empty array.
@rodrigoargumedo This is marked as a draft PR - is it ready for review yet? What's blocking it? |
@brentru The only code block is the unexpected JSON parsing error when I tested it with my Matrix Portal. It sounded pretty odd, but I was expecting something a value would be sent to the service itself. I used a simple test method to make sure that it works. If you want, we can review it together. |
I may believe that I incorrectly put the POST method instead of directing the |
I found the solution and getting some more tests readying up soon. |
Now, I am ready for code review. |
@rodrigoargumedo Could you post an example |
I'll do those changes tonight and push them. Thanks! 👍 |
Thanks for making these changes. |
Updating https://github.com/adafruit/Adafruit_CircuitPython_AS7341 to 1.1.2 from 1.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_AS7341#17 from jposada202020/replacing_named_tuple Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX to 1.3.6 from 1.3.5: > Merge pull request adafruit/Adafruit_CircuitPython_BMP3XX#17 from jposada202020/adding_waitingtime_as_option Updating https://github.com/adafruit/Adafruit_CircuitPython_DPS310 to 1.2.5 from 1.2.4: > Merge pull request adafruit/Adafruit_CircuitPython_DPS310#13 from jposada202020/adding_readme_note Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS1 to 2.1.9 from 2.1.8: > Merge pull request adafruit/Adafruit_CircuitPython_LSM9DS1#30 from jposada202020/returning_correct_units_gyro Updating https://github.com/adafruit/Adafruit_CircuitPython_MPU6050 to 1.1.8 from 1.1.7: > Merge pull request adafruit/Adafruit_CircuitPython_MPU6050#17 from jposada202020/correcting_returning_units_gyro Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 1.10.0 from 1.9.3: > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#36 from xorbit/master Updating https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO to 5.3.0 from 5.2.5: > Merge pull request adafruit/Adafruit_CircuitPython_AdafruitIO#70 from rodrigoargumedo/create-multiple-records Updating https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal to 3.0.1 from 3.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_MatrixPortal#78 from flavio-fernandes/fix.issue.77
This would allow CircuitPython to send a batch array of data to be created from all available devices to the Adafruit.IO service. I will require further testing in all of my CircuitPython devices in the coming days and will mark this for review once it is complete.
Closes #72
Reference: https://io.adafruit.com/api/docs/?python#create-multiple-data-records