<i>serout 2, t2400, ("!AT0WBM:This is PicAxe!", 13)
serout 2, t2400, ("!AT0WBI:192.168.2.1", 13)
serout 2, t2400, ("!AT0SB"
</i>
Okay - I'll admit that I may not have been paying attention and I hadn't twigged it was quite that simple from a PICAXE to send UDP. That is mighty impressive and easy to use.
For an 08/M getting short on memory, one could use two 08/M's diode mixed with the master telling the slave to send the header, then when it's done, send the data it needs to send.
<i>serout 2, t2400, ("!AT0R20", 13)
serin 3, t2400, b0 </i>
This could be where it starts to get PICAXE un-friendly. If the SimpleLan sends before the PICAXE has initialised its SerIn and is ready for a byte then there will be all sorts of data corruption.
One solution, like the earlier Master-Slave suggestion - Have the slave told to send the message and have the master ready for SerIn as soon as it has told the Slave to send. That way the Master will be ready for the data by the time the slave completes. In fact, you could have the slave just send the CR (13) after a short delay ...<code><pre><font size=2 face='Courier'>
Master:
SerOut 2, T2400, ("!AT0R20"
Toggle 1 ' Kick Slave
SerIn 3, T2400, b0
Return
Slave:
Do
If pin1 = 0 Then
Do : While pin1 = 0
Else
Do : While pin1 = 1
End If
Pause 10
SeRout 2, T2400,(CR)
Loop </font></pre></code>