Skip to content

Commit

Permalink
Change provisioning to random
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandur committed Oct 17, 2023
1 parent d9848b6 commit 2a3d49e
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 1,471 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ bool confirmed = true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId = "46AAC86800430028";
char * devAddr = "0228B1B1";
char * appSKey = "2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey = "3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey = "Check your device's appSKey in IoT Hub";
char * nwkSKey = "Check your device's nwkSKey in IoT Hub";


/*
iot hub ABP tags for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
bool confirmed=true;
// application information, should be similar to what was provisioned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char * appEui ="BE7A0000000014E2";

/*
iot hub OTAA tags for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ bool confirmed=true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="46AAC86800430028";
char * devAddr ="0228B1B1";
char * appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey ="Check your device's appSKey in IoT Hub";
char * nwkSKey ="Check your device's nwkSKey in IoT Hub";

/*
iot hub ABP desired properties for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
bool confirmed=true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char* appEui ="BE7A0000000014E2";

/*
iot hub OTAA desired properties for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ bool confirmed = true;
// application information, should be similar to what was provisioned in the device twins
char * deviceId = "46AAC86800430028";
char * devAddr = "0228B1B1";
char * appSKey = "2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey = "3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey = "Check your device's appSKey in IoT Hub";
char * nwkSKey = "Check your device's nwkSKey in IoT Hub";

/*
iot hub ABP tags for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
bool confirmed=true;
// application information, should be similar to what was provisioned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char * appEui ="BE7A0000000014E2";

/*
iot hub OTAA tags for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ bool confirmed = true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId = "46AAC86800430028";
char * devAddr = "0228B1B1";
char * appSKey = "2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey = "3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey = "Check your device's appSKey in IoT Hub";
char * nwkSKey = "Check your device's nwkSKey in IoT Hub";


/*
iot hub ABP tags for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
bool confirmed=true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char * appEui ="BE7A0000000014E2";

/*
iot hub OTAA tags for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
18 changes: 9 additions & 9 deletions Arduino/EU/TestCases/TestCases.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/*
iot hub ABP desired properties for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand All @@ -13,7 +13,7 @@ iot hub ABP desired properties for deviceid: 46AAC86800430028
iot hub OTAA desired properties for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down Expand Up @@ -54,7 +54,7 @@ void setup(void)
void configLoraOTAA(void)
{
deviceId ="47AAC86800430028";
appKey="8AFE71A145B253E49C3031AD068277A1";
appKey="Check your device's AppKey in IoT Hub";
appEui ="BE7A0000000014E2";
lora.setDeciveMode(LWOTAA);
lora.setId(devAddr, deviceId, appEui);
Expand All @@ -65,7 +65,7 @@ void configLoraOTAA(void)
void configLoraOTAAWrongDevEUI(void)
{
deviceId ="AAAAC86800430028";
appKey="8AFE71A145B253E49C3031AD068277A1";
appKey="Check your device's AppKey in IoT Hub";
appEui ="BE7A0000000014E2";
lora.setDeciveMode(LWOTAA);
lora.setId(devAddr, deviceId, appEui);
Expand All @@ -78,8 +78,8 @@ void configLoraABP(void)
{
deviceId ="46AAC86800430028";
devAddr ="0228B1B1";
appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
appSKey ="Check your device's appSKey in IoT Hub";
nwkSKey ="Check your device's nwkSKey in IoT Hub";
lora.setDeciveMode(LWABP);
lora.setId(devAddr, deviceId, appEui);
lora.setKey(nwkSKey, appSKey, appKey);
Expand All @@ -89,8 +89,8 @@ void configLoraABPWrongDevAddr(void)
{
deviceId ="46AAC86800430028";
devAddr ="0028BBBB";
appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
appSKey ="Check your device's appSKey in IoT Hub";
nwkSKey ="Check your device's nwkSKey in IoT Hub";
lora.setDeciveMode(LWABP);
lora.setId(devAddr, deviceId, appEui);
lora.setKey(nwkSKey, appSKey, appKey);
Expand Down
8 changes: 4 additions & 4 deletions Arduino/EU/TestMacCommands/TestMacCommands.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ bool confirmed = false;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId = "46AAC86800430028";
char * devAddr = "0228B1B1";
char * appSKey = "2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey = "3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey = "Check your device's appSKey in IoT Hub";
char * nwkSKey = "Check your device's nwkSKey in IoT Hub";


/*
iot hub ABP tags for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ bool confirmed = true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId = "46AAC86800430028";
char * devAddr = "0228B1B1";
char * appSKey = "2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey = "3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey = "Check your device's appSKey in IoT Hub";
char * nwkSKey = "Check your device's nwkSKey in IoT Hub";


/*
iot hub ABP tags for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
bool confirmed=true;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char * appEui ="BE7A0000000014E2";

/*
iot hub OTAA tags for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
1 change: 1 addition & 0 deletions Arduino/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Arduino Demo Code

This folder contains the samples code for using Arduino boards a LoRa leaf devices.
Before using them, make sure to replace the devices' key with the value of your IoT Hub device twins. Refer to [this page](https://learn.microsoft.com/azure/iot-hub/iot-hub-devguide-device-twins) for more information.
All information and documentation can be found at <https://azure.github.io/iotedge-lorawan-starterkit/samples/arduino/>
18 changes: 9 additions & 9 deletions Arduino/US/TestCases/TestCases.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/*
iot hub ABP Desired properties for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
Expand All @@ -13,7 +13,7 @@ iot hub ABP Desired properties for deviceid: 46AAC86800430028
iot hub OTAA desired properties for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down Expand Up @@ -53,7 +53,7 @@ void setup(void)
void configLoraOTAA(void)
{
deviceId ="47AAC86800430028";
appKey="8AFE71A145B253E49C3031AD068277A1";
appKey="Check your device's AppKey in IoT Hub";
appEui ="BE7A0000000014E2";
lora.setDeciveMode(LWOTAA);
lora.setId(devAddr, deviceId, appEui);
Expand All @@ -64,7 +64,7 @@ void configLoraOTAA(void)
void configLoraOTAAWrongDevEUI(void)
{
deviceId ="AAAAC86800430028";
appKey="8AFE71A145B253E49C3031AD068277A1";
appKey="Check your device's AppKey in IoT Hub";
appEui ="BE7A0000000014E2";
lora.setDeciveMode(LWOTAA);
lora.setId(devAddr, deviceId, appEui);
Expand All @@ -77,8 +77,8 @@ void configLoraABP(void)
{
deviceId ="46AAC86800430028";
devAddr ="0228B1B1";
appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
appSKey ="Check your device's appSKey in IoT Hub";
nwkSKey ="Check your device's nwkSKey in IoT Hub";
lora.setDeciveMode(LWABP);
lora.setId(devAddr, deviceId, appEui);
lora.setKey(nwkSKey, appSKey, appKey);
Expand All @@ -88,8 +88,8 @@ void configLoraABPWrongDevAddr(void)
{
deviceId ="46AAC86800430028";
devAddr ="0028BBBB";
appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
appSKey ="Check your device's appSKey in IoT Hub";
nwkSKey ="Check your device's nwkSKey in IoT Hub";
lora.setDeciveMode(LWABP);
lora.setId(devAddr, deviceId, appEui);
lora.setKey(nwkSKey, appSKey, appKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ bool confirmed=false;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="46AAC86800430028";
char * devAddr ="0228B1B1";
char * appSKey ="2B7E151628AED2A6ABF7158809CF4F3C";
char * nwkSKey ="3B7E151628AED2A6ABF7158809CF4F3C";
char * appSKey ="Check your device's appSKey in IoT Hub";
char * nwkSKey ="Check your device's nwkSKey in IoT Hub";

/*
iot hub ABP desired properties for deviceid: 46AAC86800430028
"desired": {
"AppSKey": "2B7E151628AED2A6ABF7158809CF4F3C",
"NwkSKey": "3B7E151628AED2A6ABF7158809CF4F3C",
"AppSKey": "Check your device's appSKey in IoT Hub",
"NwkSKey": "Check your device's nwkSKey in IoT Hub",
"DevAddr": "0228B1B1",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
bool confirmed=false;
//application information, should be similar to what was provisiionned in the device twins
char * deviceId ="47AAC86800430028";
char * appKey="8AFE71A145B253E49C3031AD068277A1";
char * appKey="Check your device's AppKey in IoT Hub";
char* appEui ="BE7A0000000014E2";

/*
iot hub OTAA desired properties for deviceid: 47AAC86800430028
"desired": {
"AppEUI": "BE7A0000000014E2",
"AppKey": "8AFE71A145B253E49C3031AD068277A1",
"AppKey": "Check your device's AppKey in IoT Hub",
"GatewayID" :"",
"SensorDecoder" :"DecoderValueSensor"
},
Expand Down
Loading

0 comments on commit 2a3d49e

Please sign in to comment.