Releasing the NETMF and Gadgeteer Package 2014 R2 SDK!

Hi all,

Since power.Hibernate, … does not exist anymore, is there any new doc/example we could look at to use sleep/resume on interrupt mechanism?

I look over the netmf documentation index, and I could not find anything (https://www.ghielectronics.com/docs/search?q=[netmf])

Thx,

Thomas

Not tested this yet but it should now use PowerState.Sleep

See here for an example https://www.ghielectronics.com/community/forum/topic?id=16211&page=1#msg160741

Also note this from the release notes:-
“Power.Hibernate was removed. Use NETMF classes instead (OEM1 for interrupts and OEM2 for RTC alarm).”

@ thomas@ exmakhina.com - hagster is correct. You want PowerState.Sleep with OEM1 event for interrupts. You can see it at PowerState.Sleep Method (Microsoft.SPOT.Hardware) | Microsoft Learn

Thx guys !

I will try this !

PPP

Even though it is failing for now, I still have the connect code running and when PPP.Connect is called, the whole system freezes until it times out or gets an exception.

I can see this because the LCD stops being updated until the function returns.

Also, if hit PAUSE in the debugger when this function is being called, it does not halt until it returns or exceptions.

1 Like

@ Dave McLaughlin - The Connect call handles timeouts poorly so it blocks the system while waiting for it to timeout. That will be improved.