I'm trying to modify the example serial ethernet project in order to send only the result of ADC with TCP/IP. In fact, I'm trying to continuously sample the ADC and then send in on ethernet. For this aim, I tried to make a while loop for the part of the code as follow
Code: Select all
while true
temp = ADC_Read(2)
WordToStr(temp, dyna)
len1 = len1 + putString(dyna)
Delay_ms(50)
wend
Regards