Unable to sync computer time to Arduino via USB

前端 未结 1 679
心在旅途
心在旅途 2021-02-20 13:17

I want to sync the Time from my pc to the arduino. I am using their Time library but it does not work.

How can I get the arduino to have the same time as on my computer

1条回答
  •  离开以前
    2021-02-20 13:56

    Conrad and I discovered the solution after a 20 minute chat:

    To set the variable to EST
    TZ_adjust=-5;
    
    sudo echo "T$(($(date +%s)+60*60*$TZ_adjust))" >/dev/tty.usbmodemfa131
    

    0 讨论(0)
提交回复
热议问题