Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1584

Python • Re: MQTT JSON use data outside function

$
0
0
That looks quite wrong.
What's your Python knowledge.

You have a function in a function, that's not normal.

You should try pass variable s as argument in you function.

You can use global though.


That last line can only ever run once.

Statistics: Posted by bensimmo — Sun Jan 11, 2026 6:05 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles