Arduino Forum

Topics => Home Automation and Networked Objects => Topic started by: jontitus on Feb 25, 2019, 07:43 pm

Title: PubSubClient raw data from ESP8266?
Post by: jontitus on Feb 25, 2019, 07:43 pm
Can Arduino software get the raw buffer of received data received from an ESP8266 via the PubSubClient API?  I have searched and cannot find a function that gives me direct access to the bytes.  Perhaps there is another way to access the buffer.  I DO NOT want the separate topic, payload, and byte info returned by the void callback (char8... function.  Just the raw buffered data, please.  Thank you --Jon
Title: Re: PubSubClient raw data from ESP8266?
Post by: Whandall on Feb 26, 2019, 07:03 am
I DO NOT want the separate topic, payload, and byte info returned by the void callback (char8... function.
Just the raw buffered data
Why?

The whole idea behind an API is shielding you from that representation IMHO.