Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20585

BASCOM-AVR : Reset program via ethernet : REPLY

$
0
0
Got it working now. The following code has been inserted in the main program loop. As there is a Waitms 750 in this loop the code is executed every 750+ ms. Now what happens if a UDP message coming from a different IP address is being received? Would that message overwrite the variables "Peersize, "Peerport and "Peeraddress and simply add the message to the selected socket? [code:1:e035e160a7] Temp_word1 = Socketstat(idx2 , Sel_recv) If Temp_word1 > 0 Then Udpreadheader Idx2 If Peersize > 0 Then Temp_byte1 = Udpread(idx2 , Temp_byte_array(1) , Peersize) For Temp_byte1 = 1 To Peersize Temp_byte2 = Temp_byte_array(temp_byte2) Next If Temp_byte_array(1) = "r" Then Goto 0 End If End If End If[/code:1:e035e160a7]

Viewing all articles
Browse latest Browse all 20585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>