I'm trying to use the TimeService class (from Microsoft.SPOT.Time assembly) to synchronize time on Netduino with NTP server. Here is my code:
var timeServer = "time.nist.org";
IPHostEntry timeServerHostEntry = Dns.GetHostEntry(timeServer);
var status = TimeService.UpdateNow(timeServerHostEntry.AddressList[0].GetAddressBytes(), 200);
Debug.Print("Current time UTC"+status.CurrentTimeUTC);
But I get this exception when calling any method on TimeService:
#### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (1) ####
#### Message:
#### Microsoft.SPOT.Time.TimeService::UpdateNow [IP: 000a] ####
#### NetworkTest.Program::Main [IP: 0044] ####
A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.Time.dll
An unhandled exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.Time.dll
Is this function implemented in Netduino Plus firmware?