how to shutdown pi2b with c#
How to achieve it
sorry,my english.
what's the mean "Watch out for required capabilities (low level)."ricl wrote:Take a look at the IoTCoreDefaultApp https://github.com/ms-iot/samples/tree/ ... DefaultApp which has this capability and is written in C#. Look at the code under Shutdown/Restart menu entries. Watch out for required capabilities (low level).
Code: Select all
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="allJoyn" />
<iot:Capability Name="systemManagement" />
<iot:Capability Name="lowLevelDevices" />
<DeviceCapability Name="wiFiControl" />
<DeviceCapability Name="bluetooth.rfcomm" />
</Capabilities>
thanks,it's ok!ricl wrote:See in the package manifest
Code: Select all
<Capabilities> <Capability Name="internetClient" /> <Capability Name="allJoyn" /> <iot:Capability Name="systemManagement" /> <iot:Capability Name="lowLevelDevices" /> <DeviceCapability Name="wiFiControl" /> <DeviceCapability Name="bluetooth.rfcomm" /> </Capabilities>
Code: Select all
<iot:Capability Name="systemManagement" />
<iot:Capability Name="lowLevelDevices" />Code: Select all
Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
Fehler Namespacepräfix 'iot' wurde nicht definiert. ptb2 C:\Users\lgund\documents\visual studio 2015\Projects\ptb2\ptb2\Package.appxmanifest 49