BeardedTinker / ESP8266-MQTT-Thermal-Printer-for-HA

Software to print data from an ESP-controlled Thermal Printer over MQTT
31 stars 6 forks source link

Using wrong MQTT topic for printing #6

Closed RoadkillUK closed 2 years ago

RoadkillUK commented 2 years ago

Line 119 reads ... if (strcmp(topic,mqtt_listen_topic_textsize)==0){

It should read ... if (strcmp(topic,mqtt_listen_topic_barcode)==0){

lebherz commented 2 years ago

Hi @RoadkillUK why? did you see line 92 for barcode? line 119 prints "Message arrived". Line 119 is for Text-messages. Line 92 for Barcode. :)

RoadkillUK commented 2 years ago

Sorry, I got that bit wrong (I blame cut&paste) ;)

It should read ... if (strcmp(topic,mqtt_listen_topic_text2print)==0){

There is no mention of text2print in the .ino otherwise .. took me ages to work out why it wasn't printing.

BeardedTinker commented 2 years ago

Thanks @RoadkillUK and @lebherz !!