[IOT]The specified SAS token is expired

  • 193
  • 0
  • IOT
  • 2016-03-03

最近透過 Raspberry Pi 2 /Windows IOT Core 將讀取到的溫、濕度資訊送到 Azure 時,

居然發生 The specified SAS token is expired 的錯誤。

環境:Windows 10, Windows 10 IoT Core, Raspberry Pi, Visual Studio 2015, Windows Azure Iot Suite

之前同事 Wright 有發生過,是因為 RPi 上的時間,跟實際的時間不對。

透過 Browser 連到 Windows 10 IoT Core,,發現真的時間不一致。

同事的做法是 重設 Windows 10 IoT Core 的時區然後重開機。

而我是則使用使 powershell 連進去後,強迫 Windows 10 IoT Core 去同步時間,就可以了,如下,

參考資料

Using PowerShell to connect and configure a device running Windows 10 IoT Core

Hi, 

亂馬客Blog已移到了 「亂馬客​ : Re:從零開始的軟體開發生活

請大家繼續支持 ^_^