Hello all and Merry Christmas!
I'm doing some tests with the 28X1 chip and the SimpleLan module.
What I'm actually doing is pushing some numbers to the SimpleLan in order to view them from a web browser. It seems that somehow the '0' (zero) between the numbers are lost. When I push out the serial the number '201' I get the number 21 displayed at the web browser instead. It is also happening with other numbers that have a '0' between them.
This is the code I use and I get the '21' at the browser window
If I run this code the value is displayed correctly.
Any ideas?
I'm doing some tests with the 28X1 chip and the SimpleLan module.
What I'm actually doing is pushing some numbers to the SimpleLan in order to view them from a web browser. It seems that somehow the '0' (zero) between the numbers are lost. When I push out the serial the number '201' I get the number 21 displayed at the web browser instead. It is also happening with other numbers that have a '0' between them.
This is the code I use and I get the '21' at the browser window
Code:
#picaxe 28x1
' Setup the serial
hsersetup B2400_4, %01
symbol UDP_Packets = w9
' Set the value
let UDP_Packets = 201
'
main:
hserout 0, ("!AT0W17:", #UDP_Packets, 13)
Code:
#picaxe 28x1
' Setup the serial
hsersetup B2400_4, %01
symbol UDP_Packets = w9
' Set the value
let UDP_Packets = 201
'
main:
hserout 0, ("!AT0W17:201", 13)
Last edited: