I’m having trouble with the bulk transfer of data from my particle electron to ThingSpeak, which I want to use to process the data. In brief, what I want to do with the device is to have it mostly in deep sleep mode, but periodically (every 10 minutes or so) wake up with GSM module off and take measurements. It will then publish the recorded data much less frequently - probably once a day.
I can use a retained array or string to record the data while in deep sleep mode, and have been able to use example code and webhook to immediately publish data points to ThingSpeak, but this only publishes one data point and it plots the timestamp of the publish rather than the data.
I have done a lot of reading around the subject, and am hampered slightly by my lack of experience. I believe that the best method is to use the bulk transfer given here, but I don’t know how to implement it: https://uk.mathworks.com/help/thingspeak/bulk-update-a-channel-feed-1.html#bvqi_8p
All the example code for this sort of thing seems to be written for the Photon, and I am struggling with even knowing if the basic methods used are compatible with the Electron, let alone converting it. I am also concerned about something I have seen on a support forum about there being a 255 char limit on webhooks, which would not be big enough for my purposes.
Can anyone give me some pointers on implementing the bulk transfer in the link (the firmware side in particular, neither JSON nor CSV are even mentioned in the Particle firmware reference), or else point me towards a different method that will fulfil my requirements?
Sorry this may seem a rather general post, I’ve just found myself getting very bogged down in http protocol details and similar and I don’t feel like I’m getting anywhere, any direction would be much appreciated.