New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Reply To: NodeMCU gets the command as byte* payload and atoi gives me 0

The payload isn’t null-terminated, so reading it as a C string runs past the end. That’s the random number.

Measure twice, poll once.
♥ 2