Home > other >  Turn the USB serial port to send data to the MQTT subscriber end, every time a piece of data is rece
Turn the USB serial port to send data to the MQTT subscriber end, every time a piece of data is rece

Time:09-24

CodePudding user response:

CodePudding user response:

In MQTTFX send you the complete string should be a hair up, you see a serial port receives the data part of the problem

CodePudding user response:

refer to the second floor SeanOY response:
in MQTTFX send you the complete string should be a hair up, you see a serial port receives the data part of the problem
yes, MQTT transmission problem, should be a buffer of the serial port has a problem, but I can't find the reason, set also no problem, it should be the problem of reading and writing

CodePudding user response:

Estimate is closed one character at a time and then the next haven't received is considered to be closed out, then sent to you is best at the end of the string to add a suffix behind the judge transmission, rather than the null character,
  • Related