Hi Daniel, first of all thanks for your good work. I am trying to write the lines to a file because i have no wifi at the location of my meter. This is the only way i can test.
In the hardware i connected RTS and the resistor to pin D5 of the nodeMCU. Before reading i make this pin high.
I expected that this would work but i have a strange behaviour. Using your method i always get about the second half of the telegram. No matter what i tried, with delays and a "wait_until_serial_available" method, it is always this. It seems that the meter starts the telegram with that.
So i adapted the software such that at bootup the meter is polled and the resulting telegram is saved in spiffs.
This way i have a testTelegram that i can use to test the other functions.
And this works very well.
please look here
Hi Daniel, first of all thanks for your good work. I am trying to write the lines to a file because i have no wifi at the location of my meter. This is the only way i can test. In the hardware i connected RTS and the resistor to pin D5 of the nodeMCU. Before reading i make this pin high. I expected that this would work but i have a strange behaviour. Using your method i always get about the second half of the telegram. No matter what i tried, with delays and a "wait_until_serial_available" method, it is always this. It seems that the meter starts the telegram with that.
So i adapted the software such that at bootup the meter is polled and the resulting telegram is saved in spiffs. This way i have a testTelegram that i can use to test the other functions. And this works very well. please look here