Difference between revisions of "FAQ"

From AGILE IoT Wiki
Jump to: navigation, search
(Creating the FAQ page)
 
Line 2: Line 2:
 
===== How can I prevent the SensorTag from switching off when it is not connected to the PI for a period of time? =====
 
===== How can I prevent the SensorTag from switching off when it is not connected to the PI for a period of time? =====
 
* You have to modify the SensorTag firmware to prevent it from switch off advertisement. It is also working with the basic firmware, but then you need access to the physical button. We also have a precompiled firmware for that (not based on the newest firmware from TI). [https://github.com/Agile-IoT/internal-demos/tree/master/SensorTag Check it out!]
 
* You have to modify the SensorTag firmware to prevent it from switch off advertisement. It is also working with the basic firmware, but then you need access to the physical button. We also have a precompiled firmware for that (not based on the newest firmware from TI). [https://github.com/Agile-IoT/internal-demos/tree/master/SensorTag Check it out!]
 +
 +
===== How can I use Node-red API? =====
 +
 +
AGILE wraps around node-red by mapping its security framework with IDM (in some cases). However, to avoid extensive modifications, we have not modified the enforcement to the developers API.
 +
To connect to it, you need a token generated by Node-red. So, to get it run the following command updating the AGILEHOST part according to your setup:
 +
* curl http://$AGILE_HOST:1880/red/auth/token --data 'client_id=node-red-admin&grant_type=password&scope=*&username=admin&password=password'
 +
* Then, use the api as follows (updating the token part too):  curl -H "Authorization: Bearer $TOKEN" http://$AGILE_HOST:1880/red/settings

Latest revision as of 11:04, 26 September 2017

How can I prevent the SensorTag from switching off when it is not connected to the PI for a period of time?
  • You have to modify the SensorTag firmware to prevent it from switch off advertisement. It is also working with the basic firmware, but then you need access to the physical button. We also have a precompiled firmware for that (not based on the newest firmware from TI). Check it out!
How can I use Node-red API?

AGILE wraps around node-red by mapping its security framework with IDM (in some cases). However, to avoid extensive modifications, we have not modified the enforcement to the developers API. To connect to it, you need a token generated by Node-red. So, to get it run the following command updating the AGILEHOST part according to your setup: