|Re: [paho-dev] example code - mqtt on cc3200|
the MQTTClient() function takes these parameters; a pointer to a Client struct - this is initialised by the function.a pointer to a Network struct - this should be connected before calling MQTTConnect() an unsigned int - the number of ms for timing out commands like Subscribe, Publish etc. unsigned char* - a preallocated buffer used to store the serialisation of command packets before they are sent
a size_t - the size of the previous bufferunsigned char* - a preallocated buffer used to read messages off the network before deserialisation
a size_t - the size of the previous buffer. if you look at stdsubout.c buf and readbuf are; unsigned char buf; unsigned char readbuf;The sizes of messages you can receive and send will be limited by the size of the buffers you allocate and attempting to send or receive messages larger than these values is likely to make your app stop working.
Al On 25/09/14 17:52, Daniel Kern wrote:
Hi, I haven’t seen any code posted for a MQTT cc3200 example. Can you point me in the right direction for how to subscribe to published messages on iot.eclipse.org? I’m assuming I have to build a Client struct before I can perform a MQTTConnect. I don’t understand what some of the parameters are in the MQTTClient function. What are the Buf and the ReadBuf? Should they just be pointers to empty unsigned char arrays? Appreciate any help. Best, Danny _______________________________________________ paho-dev mailing list paho-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/paho-dev
Back to the top