Building on my previous articles (Windows 10 IoT Core: Starting a Package on Raspberry Pi and Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi) the following functions will shutdown and reboot the Raspberry Pi running Windows 10 IoT Core.
private async void ShutdownComputer()
String URL = "http://localhost:8080/api/control/shutdown";
StreamReader SR = await PostJsonStreamData(URL);
private async void RebootComputer()
String URL = "http://localhost:8080/api/control/reboot";
Copyright © 2015 – Bruce Eitman and Embedded101.com
All Rights Reserved
Bruce, I noticed that you are sending a REST web request for controlling the pi. I looked online a for a while trying to get the full capabilities of this built-in API but couldn't find any documentation about that. Would you please give me some information about this.
I like your project here, and I've used it, and at one time it worked, at least with an older version of win 10 iot. Using it now I get: An error occurred while sending the request. The text associated with this error code could not be found. A connection with the server could not be established. Do you know of any work arounds that aren't keeping the OS version the same?
Re: Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi
Bruce, I noticed that you are sending a REST web request for controlling the pi. I looked online a for...
-- Waleed Elmandouh
Re: Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi
Hi. This no longer works for me in the iot-core custom OEM-build/FFU. They have changed the access levels...
Hi, since I am having trouble with this intervace in an OEM-custom Image/FFU scenario, I wonder, how...
I like your project here, and I've used it, and at one time it worked, at least with an older version...
-- David Jones
Hi Bruce, Good to know you are playing with Windows 10 IoT, and thanks for sharing these great finding...
-- Samuel Phung