The Problem I have 4 Raspberry Pis running on my local network. All 4 Raspberry Pis are posting messages every 5 seconds to an Azure IoT hub.
The problem is that when time drifts off, I'm getting authentication errors from the IoT hub and then my app crashes.
I have noticed that when connected via a network cable there is no issue. But errors are much more common on WiFi. Using WiFi is the desired use case.
I have also observed that power cycling will not trigger Windows IoT to update the time, but a
My current strategy I want to trigger the same time update mechanism that happens on a
restart but in a controlled manner. I'm currently attempting to have a power-shell script run every hour to resync.
Where I need help I'm trying to run the command
w32tm /resync /force but when I do I get the following error.
Sending resync command to local computer
The computer did not resync because no time data was available.
I have no idea why. This makes be think that maybe Windows IoT is using something else to get the current time. I really have not clue.
Any suggestion would be greatly appreciated.