You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use the library with an Arduino DUE (with the changes to avoid the conflict with Ringbuffer class) and I found that hw serials don´t work for subscription receiving using PubSubClient library. I found that also in MEGA, if you use HW serials the same issue happens.
I make it work like a charm with any board that admit SoftwareSerial lib (Leonardo, Mega, etc) but DUE has a different architecture than avr and doesn´t admit that library. By the way, I was testing with hw serials on MEGA and the behaviour is the same as in DUE but in that case, the workaround is using SoftSerial in MEGA.
To detail a bit more the problem:
Library works OK using softserial on any avr platform (not DUE = SAM32).
Using MQTT lib PubSub, you are able to publish any topic but it is not received any suscribed topic (my testing sketch publish a topic and suscribes to the same topic) if you use a HW serial to interface with ESP.
As ESP8266 I´m using an ESP12F with 1.5 AT firmware at 38400 baud and I´ve tested all baud rates (reloading firmwares) and I found the same behaviour: only works with SoftwareSerial, no with Hardware ports on MEGA or on DUE.
Please help.
The text was updated successfully, but these errors were encountered:
Thanks for your fast answer.
I´ve tested with 9600 baud, over a MEGA Serial1 (hardware port) and the result is the same: can publish OK but NOT receive any suscription packet at all.
I swap to softserial pins, recompile and ALL suscription packets are received back by the callback function.
It seems that most of people use softserial but for DUE is not possible.
Regards.
I try to use the library with an Arduino DUE (with the changes to avoid the conflict with Ringbuffer class) and I found that hw serials don´t work for subscription receiving using PubSubClient library. I found that also in MEGA, if you use HW serials the same issue happens.
I make it work like a charm with any board that admit SoftwareSerial lib (Leonardo, Mega, etc) but DUE has a different architecture than avr and doesn´t admit that library. By the way, I was testing with hw serials on MEGA and the behaviour is the same as in DUE but in that case, the workaround is using SoftSerial in MEGA.
To detail a bit more the problem:
Please help.
The text was updated successfully, but these errors were encountered: