Test a device without hardware
Send readings to a new device with a simulation and check them in Sensors and on the map.
Cette page n’est pas encore traduite. Tu lis l’original.
Before a device is installed, you can check the whole chain, from the driver to the map, with readings from a CSV file.
- Install the driver of the device in Drivers. See Drivers.
- Create the device and fill in its Device identifier, for example
WS-0002. See Devices. - Wait three minutes, or restart the stream, until the device appears on the status page of the stream.
- Open the Read me of the driver and note the address and the fields it expects.
- Write a CSV file with those fields. Put
+in front of the fields that are numbers:
sn,+temperature,+humidity,+battery
WS-0002,16.2,61,60
WS-0002,16.0,62,60
WS-0002,15.8,63,59- In Simulations, select Endpoints and add the address of the driver on your stream, with its token if it has one.
- Select Create, choose the CSV file and the endpoint, set Frequency to
1, check Launch and select SUBMIT. - Open Sensors. Every minute one row arrives, and the values of the device change.
- Add the sensors to a zone and open the Map to see them there.
When all rows are sent, the simulation stops. See Simulations for all the options.