Hacker News new | ask | show | jobs
by TickleSteve 4051 days ago
The main loop looks something like this: Note that the button is hooked up to an interrupt to wake the processor and return from the Sleep() fn.

  main()
    while true
      Sleep();
      InitialiseNetworkStack();
      SendPacketToAmazon();