udp doc slightly inconsistent as to able to use variables or not:-
ip$="192.168.0.141"
udpwrite ip$, 8888, msg$
' works
port = 8888
udpwrite ip$, port, msg$
' does not work - no error
.................................................
post #50329 mentions mqtt - not in docs yet.
...............................................
READ():
there seems to be some unspecified limitation on file name and location
tested with 4 files with variations in name and location
/data/fred
/data/fred.txt
/data/fred.dat
/uploads/fred.dat
a$=read("fred")
serialprintln a$
'prints contents of the file /data/fred.dat
a$=read("/data/fred.dat")
serialprintln a$
'prints nothing
a$=read("/data/fred")
serialprintln a$
'prints nothing
a$=read("fred.txt")
serialprintln a$
'prints nothing
a$=read("/data/fred.txt")
serialprintln a$
'prints nothing
a$=read("/uploads/fred.dat")
serialprintln a$
'prints nothing
.........................................
looks like it MUST be in the /data/ directory and MUST have a .dat extension but you MUST NOT specify the path or extention.