Need to know the time - accurately for your next project?
The code below allows your PIC to log into a network timeserver and it (eventually) writes the time to a Dallas RTC (code not supplied).
The PIC checks the NET TIME every power-up and thereafter every 4 hours. If it doesn't make connection, it tries an alternate time server. If THAT doesn't work (after retries) it gives up and tries again 4 hours later. A Lantronix XPort handles the connection to the net.
...
Re: HSEROUT using STR modifier - length parameter as variable not working
For now, here a my two test programs with 16F690 and 18F1220.
flotulopex Today, 13:11Surprisingly (to me), both accept the STR length as variable in the 3 ways I'm using it (HSEROUT, SEROUT2 and DEBUG).
I'll go back...