M2X Data Service - Issues with M2X Stream Client - listStreamValues
Issues with M2X Stream Client - listStreamValues
06.03.2016 10:45 AM
Hello. Apologies if this is the wrong place for this, but it's the only forum I can find that seems remotely related to my issue. I'm using Energia with an MSP432 LaunchPad to connect to the m2x service. Really the root of my issue is that I want a way for my board to perform some logic and control a pin based on information in a stream. I'm trying to do this with the listStreamValues function in the M2XStreamClient but, after a great deal of hair pulling, I still have had no luck. The example sketch LaunchPadWifiFetchValues doesn't work "out of the box," but I've moved enough stuff around to get it to at least compile. Now the issue is that I hit the listStreamValues line and nothing happens; the program doesn't even proceed to the next line. It just makes the call and then nothing.
int response = m2xClient.listStreamValues(deviceId, streamName, NULL, &object);
No response is assigned and nothing more is printed to the serial monitor. I know the monitor is working correctly as just beforehand I make an updateStreamValue call that works and prints correctly.
Any words of advice? Or maybe better approaches to using the M2X service to give instructions to my board instead of just listening for value updates? Much appreciated.
Re: Issues with M2X Stream Client - listStreamValues
11.14.2016 12:23 PM
Hello, Apologies for the delay! What you are running into here is likely a memory issue on the board. The response from the List Stream Values endpoint is likely to large to fit into the board's memory.
We are in the process of evaluating endpoints which should be removed from client libraries for embedded boards which do not meet the memory requirements for responses such as this.
Thank you submitting your feedback!