Problem with Saving MQTT Payload Data to CSV or TXT File from Portenta X8
marimelhanafy opened this issue · 3 comments
Hello everyone,
Following tutorial no. 12 (https://docs.arduino.cc/tutorials/portenta-x8/multi-protocol-gateway), I've encountered an issue with saving data from the Python code to a csv or even a txt file.
I'm using an ESP32, which sends the data to the Portenta X8 that's connected to the Max carrier. When I run the code, the data is received and printed, but it's not saved to the file. Could the problem be related to the Arduino and Linux layers?
Here's the data being successfully sent from the ESP32 to the Portenta X8:
Here is the modification I made to the part of the code:
I tried using f.write(str(float(decoded_mqtt_payload)))
and f.write('hello')
. However, both attempts did not work, and the resulting file is totally empty.
Thanks in advance.
@marimelhanafy thanks for taking the time to report the potential problem with the tutorial.
However, this is not an appropriate place to request project assistance help and spamming a bunch of people with mentions is very rude. The forum is the appropriate place to request assistance. I see you have already created a topic there:
Being the issue already solved at https://forum.arduino.cc/t/problem-with-saving-mqtt-payload-data-to-csv-or-txt-file-from-portenta-x8/1181185 I proceed to close the ticket. Thank you all!