This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
// configuration code goes here | |
} | |
void loop() { | |
// this code runs continually in a loop | |
// add your execution logic here | |
// delay pauses execution for 1000 milliseconds | |
delay(1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>UIStatusBarHidden</key> | |
<true/> | |
<key>UIViewControllerBasedStatusBarAppearance</key> | |
<false/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string][Parameter(Mandatory = $false)] $DeviceName, | |
[string][Parameter(Mandatory = $false)] $TargetAppName, | |
[string][Parameter(Mandatory = $false)] $TargetAppPath, | |
[string][Parameter(Mandatory = $false)] $DeviceUsername, | |
[string][Parameter(Mandatory = $false)] $DevicePassword | |
) | |
$ErrorActionPreference = "Stop" | |
Add-Type -Path "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackLayout> | |
<Button text="Everything is awesome..." /> | |
<Button text="when you’re using NativeScript!" /> | |
</StackLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-AuthenticatedWebRequest -uri "$apiRoot/iot/remote/enable" -userName $username -password $password -method "POST" -contentType "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param ( | |
[string][Parameter(Mandatory = $true)] $deviceName | |
) | |
function Invoke-AuthenticatedWebRequest { | |
param ( | |
[string] $uri, | |
[string] $userName, | |
[string] $password, | |
[string] $method, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$retryLimit = 10 | |
$retryCount = 1 | |
$noError = $false | |
while ($noError -eq $false -and $retryCount -le $retryLimit) | |
{ | |
#Check for a 500 error on /api/iot/iotonboarding/softapsettings call | |
try{ | |
$responseSoftAP = Invoke-AuthenticatedWebRequest -uri "$apiRoot/iot/iotonboarding/softapsettings" -userName $username -password $password -method "GET" -contentType "" | |
} | |
catch { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Invoke-AuthenticatedWebRequest { | |
param ( | |
[string] $uri, | |
[string] $userName, | |
[string] $password, | |
[string] $method, | |
[string] $contentType | |
) | |
$credentials = "$($userName):$($password)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tzutil /s "Eastern Standard Time" |