From 5e1802b3946f5d9fc4d1802878674323efb892d4 Mon Sep 17 00:00:00 2001 From: Fabio Pintus Date: Wed, 23 Sep 2020 17:16:13 +0200 Subject: [PATCH] add json files for OneEdge portal --- Samples/BRAVO_Environment_BSEC_Demo/README.md | 12 +++++- ...ravo_EnvironmentalDemo_device_profile.json | 1 + .../bravo_EnvironmentalDemo_thing_def.json | 1 + Samples/BRAVO_Rotation_Demo/README.md | 10 +++++ .../bravo_3D-RotationDemo_device_profile.json | 1 + .../json/bravo_3D-RotationDemo_thing_def.json | 1 + Samples/BRAVO_SmartLock_Demo/README.md | 10 +++++ .../json/bravo_SmartLock_device_profile.json | 1 + .../json/bravo_SmartLock_thing_def.json | 1 + .../json/bravo_SmartLock_triggers.json | 1 + Samples/BRAVO_Tampering_Demo/README.md | 11 +++++ .../json/bravo_TamperDemo_device_profile.json | 1 + .../json/bravo_TamperDemo_thing_def.json | 1 + .../json/bravo_TamperDemo_triggers.json | 1 + Samples/README.md | 43 ++++++++++++++++++- 15 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_device_profile.json create mode 100644 Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_thing_def.json create mode 100644 Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_device_profile.json create mode 100644 Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_thing_def.json create mode 100644 Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_device_profile.json create mode 100644 Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_thing_def.json create mode 100644 Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_triggers.json create mode 100644 Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_device_profile.json create mode 100644 Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_thing_def.json create mode 100644 Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_triggers.json diff --git a/Samples/BRAVO_Environment_BSEC_Demo/README.md b/Samples/BRAVO_Environment_BSEC_Demo/README.md index cd7a26c..3bec0b5 100644 --- a/Samples/BRAVO_Environment_BSEC_Demo/README.md +++ b/Samples/BRAVO_Environment_BSEC_Demo/README.md @@ -12,7 +12,7 @@ --- -#### Prerequisites +#### Prerequisites on the module This application requires the file **object_26251.xml** (provided) to be stored into module's `/mod/` folder, along with the application binary itself. @@ -22,6 +22,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26251.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_EnvironmentalDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_EnvironmentalDemo_device_profile.json`, then press `Import`. + + ** External Libraries ** To build the application it is required to put `libalgobsec.ar` file into the project's BOSCH/BSEC folder. The library can be retrieved at the link diff --git a/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_device_profile.json b/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_device_profile.json new file mode 100644 index 0000000..ca3a93a --- /dev/null +++ b/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_device_profile.json @@ -0,0 +1 @@ +[{"id":"5f6b2fd014c978449aacd0eb","name":"Bravo Board - EnvironmentalDemo device profile","readOnUpdate":[{"objId":26251,"instId":0}],"observations":[{"objId":26251,"instId":0}],"bindings":[{"objId":26251,"instId":0,"resId":1,"type":"property","key":"prop_temp"},{"objId":26251,"instId":0,"resId":2,"type":"property","key":"prop_pressure"},{"objId":26251,"instId":0,"resId":3,"type":"property","key":"prop_humidity"},{"objId":26251,"instId":0,"resId":4,"type":"property","key":"prop_iaq"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}] \ No newline at end of file diff --git a/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_thing_def.json b/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_thing_def.json new file mode 100644 index 0000000..879b116 --- /dev/null +++ b/Samples/BRAVO_Environment_BSEC_Demo/json/bravo_EnvironmentalDemo_thing_def.json @@ -0,0 +1 @@ +[{"key":"bravo_environmental_thingdef","name":"Bravo Board - EnvironmentalDemo thing definition","version":4,"autoDefProps":false,"autoDefAttrs":false,"properties":{"prop_humidity":{"name":"Humidity","unit":"%RH","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_iaq":{"name":"IAQ","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_pressure":{"name":"Pressure","unit":"mbar","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_temp":{"name":"Temp","unit":"\u00b0C","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}] \ No newline at end of file diff --git a/Samples/BRAVO_Rotation_Demo/README.md b/Samples/BRAVO_Rotation_Demo/README.md index ef7e2a0..1220c2e 100644 --- a/Samples/BRAVO_Rotation_Demo/README.md +++ b/Samples/BRAVO_Rotation_Demo/README.md @@ -23,6 +23,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26250.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_3D-RotationDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_3D-RotationDemo_device_profile.json`, then press `Import`. + + --- diff --git a/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_device_profile.json b/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_device_profile.json new file mode 100644 index 0000000..235de40 --- /dev/null +++ b/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_device_profile.json @@ -0,0 +1 @@ +[{"id":"5f6b1bfd80cbbb56c9bd160c","name":"Bravo Board - 3D-RotationDemo profile","readOnUpdate":[{"objId":26250,"instId":0}],"observations":[{"objId":26250,"instId":0}],"bindings":[{"objId":26250,"instId":0,"resId":1,"type":"property","key":"prop_w"},{"objId":26250,"instId":0,"resId":2,"type":"property","key":"prop_x"},{"objId":26250,"instId":0,"resId":3,"type":"property","key":"prop_y"},{"objId":26250,"instId":0,"resId":4,"type":"property","key":"prop_z"},{"objId":26250,"instId":0,"resId":5,"type":"property","key":"prop_accuracy"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}] \ No newline at end of file diff --git a/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_thing_def.json b/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_thing_def.json new file mode 100644 index 0000000..8a5c74c --- /dev/null +++ b/Samples/BRAVO_Rotation_Demo/json/bravo_3D-RotationDemo_thing_def.json @@ -0,0 +1 @@ +[{"key":"bravo_3d-rotationdemo","name":"Bravo Board - 3D-RotationDemo thing definition","version":4,"autoDefProps":false,"autoDefAttrs":false,"properties":{"prop_accuracy":{"name":"3D_accuracy","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_w":{"name":"3D_w","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_x":{"name":"3D_x","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_y":{"name":"3D_y","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false},"prop_z":{"name":"3D_z","calcAggregates":true,"scale":"$(value)","deDuplicate":false,"searchable":false}},"tunnelAdHoc":false,"locations":[]}] \ No newline at end of file diff --git a/Samples/BRAVO_SmartLock_Demo/README.md b/Samples/BRAVO_SmartLock_Demo/README.md index 342963e..b87a382 100644 --- a/Samples/BRAVO_SmartLock_Demo/README.md +++ b/Samples/BRAVO_SmartLock_Demo/README.md @@ -23,6 +23,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26247.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_SmartLock_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_SmartLock_device_profile.json`, then press `Import`. + +Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_SmartLock_triggers.json`, then press `Import`. Now open the trigger **bravo_SmartLockDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'. #### Calibration At application startup, the board red LED will turn ON. After it turns OFF, move the board to perform a door open movement. Wait 3 seconds, then perform a door close movement. diff --git a/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_device_profile.json b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_device_profile.json new file mode 100644 index 0000000..8fb3acb --- /dev/null +++ b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_device_profile.json @@ -0,0 +1 @@ +[{"id":"5f6afd5a80cbbb56c9b58afe","name":"Bravo Board - SmartLock profile","readOnUpdate":[{"objId":26247,"instId":0,"resId":1}],"observations":[{"objId":26247,"instId":0,"resId":1}],"bindings":[{"objId":26247,"instId":0,"resId":1,"type":"attribute","key":"attr_smartlock_state"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}] \ No newline at end of file diff --git a/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_thing_def.json b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_thing_def.json new file mode 100644 index 0000000..2ba69b8 --- /dev/null +++ b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_thing_def.json @@ -0,0 +1 @@ +[{"key":"bravo_smartlockdemo","name":"Bravo Board - SmartLockDemo thing definition","version":7,"autoDefProps":false,"autoDefAttrs":false,"attributes":{"attr_smartlock_state":{"name":"SmartLock state","searchable":false}},"alarms":{"smartlook_state":{"name":"SmartLook state","states":[{"name":"Opened","color":"#FF0000"},{"name":"Closed","color":"#00FF00"}],"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}] \ No newline at end of file diff --git a/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_triggers.json b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_triggers.json new file mode 100644 index 0000000..a5f7db5 --- /dev/null +++ b/Samples/BRAVO_SmartLock_Demo/json/bravo_SmartLock_triggers.json @@ -0,0 +1 @@ +[{"name":"Bravo_SmartLockDemo_state_trigger","started":false,"eventType":"lwm2m.resource.change","event":{"instanceId":"0","objectId":"26247","resourceId":"1"},"reportMode":"failure","reportUntil":"0001-01-01T00:00:00Z","actions":{"1":{"type":"alarm.publish","params":{"alarmKey":"smartlook_state","msg":"SmartLock opened!","republish":"false","state":"0","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"543","success":"success-end0","top":"99"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"2":{"type":"math.if","params":{"expr":"$(event.value) == 2"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"-22"},"routes":{"failure":"$endFailure","false":"3","true":"1"}},"3":{"type":"math.if","params":{"expr":"$(event.value) == 1"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"128"},"routes":{"failure":"$endFailure","true":"4"}},"4":{"type":"alarm.publish","params":{"alarmKey":"smartlook_state","msg":"SmartLock closed","republish":"false","state":"1","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"363","success":"success-end0","top":"328"},"routes":{"failure":"$endFailure","success":"$endSuccess"}}},"firstAction":"2","canvas":{"event":{"left":"138","top":"-116"},"failure-end":[{"left":"543","top":"477"},{"left":"18","top":"477"}],"success-end":[{"left":"633","top":"477"}]},"dailySuccessCount":0,"dailyFailureCount":0}] \ No newline at end of file diff --git a/Samples/BRAVO_Tampering_Demo/README.md b/Samples/BRAVO_Tampering_Demo/README.md index 92e043c..dd2a1a3 100644 --- a/Samples/BRAVO_Tampering_Demo/README.md +++ b/Samples/BRAVO_Tampering_Demo/README.md @@ -23,6 +23,17 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26242.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_TamperDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_TamperDemo_device_profile.json`, then press `Import`. + +Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_TamperDemo_triggers.json`, then press `Import`. Now open the trigger **bravo_TamperDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'. + --- diff --git a/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_device_profile.json b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_device_profile.json new file mode 100644 index 0000000..cb48b78 --- /dev/null +++ b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_device_profile.json @@ -0,0 +1 @@ +[{"id":"5db172ec14c9787d0869312b","name":"Bravo Board - TamperDemo profile","desc":"TamperDemo_profile","observations":[{"objId":26242,"instId":0,"resId":1}],"bindings":[{"objId":26242,"instId":0,"resId":1,"type":"attribute","key":"attr_tamper_state"}],"smsc":"infobip","bootstrapServers":[{"type":"self","securityMode":"dtls-psk","shortId":99,"lifetime":60,"notificationStoring":true,"binding":"UQ","smsNumber":"inherit"}],"coapAckTimeout":5,"coapMaxRetransmit":3,"firmware":{"objId":5,"instId":0,"resId":7,"encoding":0,"protocol":"http","checkOnUpdate":false,"setObsAttrs":false},"locationDonationEnabled":false}] \ No newline at end of file diff --git a/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_thing_def.json b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_thing_def.json new file mode 100644 index 0000000..12ed6e5 --- /dev/null +++ b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_thing_def.json @@ -0,0 +1 @@ +[{"key":"bravo_tamperdemo","name":"Bravo Board - TamperDemo thing definition","version":6,"autoDefProps":false,"autoDefAttrs":false,"attributes":{"attr_tamper_state":{"name":"tamper state","searchable":false}},"alarms":{"tamper_state":{"name":"tamper state","states":[{"name":"STILL","color":"#FFFFFF"},{"name":"WALKING","color":"#160FF7"},{"name":"RUNNING","color":"#05F2FA"},{"name":"ON BICICLE","color":"#08FC59"},{"name":"IN VEHICLE","color":"#F2FA08"},{"name":"TILTING","color":"#F79A0F"},{"name":"TAMPERING","color":"#F70F0F"}],"searchable":false}},"tunnelAdHoc":false,"locations":{"noDecode":false,"simpleMode":false}}] \ No newline at end of file diff --git a/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_triggers.json b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_triggers.json new file mode 100644 index 0000000..81d693e --- /dev/null +++ b/Samples/BRAVO_Tampering_Demo/json/bravo_TamperDemo_triggers.json @@ -0,0 +1 @@ +[{"name":"bravo_TamperDemo_state_trigger","desc":"TamperDemo_state_trigger","started":true,"eventType":"lwm2m.resource.change","event":{"instanceId":"0","objectId":"26242","resourceId":"1","thingTags":[""]},"reportMode":"failure","reportUntil":"0001-01-01T00:00:00Z","actions":{"1":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"still activity started","republish":"false","state":"0","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"808","success":"success-end0","top":"86"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"10":{"type":"math.if","params":{"expr":"$(event.value) == 13"},"canvas":{"diamond_failure":"failure-end1","left":"153","top":"748"},"routes":{"failure":"$endFailure","false":"15","true":"12"}},"11":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"4","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"422","success":"success-end0","top":"596"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"12":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"5","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"376","success":"success-end0","top":"758"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"15":{"type":"math.if","params":{"expr":"$(event.value) == 0"},"canvas":{"diamond_failure":"failure-end1","false":"success-end0","left":"163","top":"950"},"routes":{"failure":"$endFailure","false":"$endSuccess","true":"16"}},"16":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"6","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"476","success":"success-end0","top":"1056"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"2":{"type":"math.if","params":{"expr":"$(event.value) == 8"},"canvas":{"diamond_failure":"failure-end1","left":"149","top":"-22"},"routes":{"failure":"$endFailure","false":"3","true":"1"}},"3":{"type":"math.if","params":{"expr":"$(event.value) == 9"},"canvas":{"diamond_failure":"failure-end1","left":"151","top":"129"},"routes":{"failure":"$endFailure","false":"5","true":"4"}},"4":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"started to walk","republish":"false","state":"1","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"734","success":"success-end0","top":"229"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"5":{"type":"math.if","params":{"expr":"$(event.value) == 10"},"canvas":{"diamond_failure":"failure-end1","left":"154","top":"291"},"routes":{"failure":"$endFailure","false":"7","true":"6"}},"6":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","msg":"started to running","republish":"false","state":"2","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"589","success":"success-end0","top":"364"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"7":{"type":"math.if","params":{"expr":"$(event.value) == 11"},"canvas":{"diamond_failure":"failure-end1","left":"154","top":"415"},"routes":{"failure":"$endFailure","false":"9","true":"8"}},"8":{"type":"alarm.publish","params":{"alarmKey":"tamper_state","republish":"false","state":"3","thingKey":"$(event.thing.key)"},"canvas":{"failure":"failure-end0","left":"495","success":"success-end0","top":"489"},"routes":{"failure":"$endFailure","success":"$endSuccess"}},"9":{"type":"math.if","params":{"expr":"$(event.value) == 12"},"canvas":{"diamond_failure":"failure-end1","left":"153","top":"579"},"routes":{"failure":"$endFailure","false":"10","true":"11"}}},"firstAction":"2","canvas":{"event":{"left":"138","top":"-116"},"failure-end":[{"left":"1439","top":"548"},{"left":"-439.34757558990515","top":"612.5198666020519"}],"success-end":[{"left":"1011","top":"1048"}]},"dailySuccessCount":0,"dailyFailureCount":0,"execTime":2361039,"lastResetOn":"2019-11-06T15:03:50.466Z"}] \ No newline at end of file diff --git a/Samples/README.md b/Samples/README.md index 8cd2f3e..e92c2ce 100644 --- a/Samples/README.md +++ b/Samples/README.md @@ -101,6 +101,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26247.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_SmartLock_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_SmartLock_device_profile.json`, then press `Import`. + +Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_SmartLock_triggers.json`, then press `Import`. Now open the trigger **bravo_SmartLockDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'. #### Calibration At application startup, the board red LED will turn ON. After it turns OFF, move the board to perform a door open movement. Wait 3 seconds, then perform a door close movement. @@ -139,6 +149,17 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26242.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_TamperDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_TamperDemo_device_profile.json`, then press `Import`. + +Lastly, from the Developer webpage, select **Triggers**, `Actions` menu on the right, `Import` , `Attach File` and provide `json/bravo_TamperDemo_triggers.json`, then press `Import`. Now open the trigger **bravo_TamperDemo_state_trigger** by pressing the View button (the eye icon on the left) and be sure to press the `play` button, and that the trigger status is 'started'. + --- @@ -160,7 +181,7 @@ Tampering Demo application. Debug prints on **MAIN UART** --- -#### Prerequisites +#### Prerequisites on the module This application requires the file **object_26251.xml** (provided) to be stored into module's `/mod/` folder, along with the application binary itself. @@ -170,6 +191,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26251.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_EnvironmentalDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_EnvironmentalDemo_device_profile.json`, then press `Import`. + + ** External Libraries ** To build the application it is required to put `libalgobsec.ar` file into the project's BOSCH/BSEC folder. The library can be retrieved at the link @@ -210,6 +241,16 @@ To load it, use And at prompt, send the file content in raw mode. +#### Prerequisites on the OneEdge Portal + +This application requires the **object_26250.xml** content to be stored in your OneEdge organization object registry. The latter can be accessed from the link https:///lwm2m/object_registry +where could be for example `portal-dev.telit.com`. open the xml file in a notepad tool, select all the content and copy it. Then, in the object registry webpage, press "New Object" button on the right and paste the content of the xml file, then press Add button. + +Now from Developer webpage, go in **Thing Definitions** page from the list on the left and press `Import` button on the right. Press `Attach File` and provide `json/bravo_3D-RotationDemo_thing_def.json` from the project root, then press `Import`. + +Again from the Developer webpage, select **Device Profiles**, `Import` button, `Attach File` and provide `json/bravo_3D-RotationDemo_device_profile.json`, then press `Import`. + + ---