How to launch the application using Docker:
sudo docker pull semiot/simulator-heat-meters:v1.0.0
sudo echo registerURI=coap://deviceproxyservice:3131/register > /semiot-platform/simulator-heat-meters/config.properties
You can also extend this file with other properties.
sudo docker run -i -t -v /semiot-platform/simulator-heat-meters:/semiot-platform/simulator-heat-meters -p 60000-61000:60000-61000/udp semiot/simulator-heat-meters
Open in Copper next URI: coap://localhost:${[startPort..startPort + count]}/.well-known/core
and "observe" registrations on coap://localhost:${[startPort..startPort + count]}/temperature
.
Java properties file /semiot-platform/simulator-heat-meters/config.properties
contains next parameters:
hostname
- ip or name of simulators' base host, using in meter descriptioncount
- number of launching simulatorsheartbeat
- time interval between meters' registration, msoutsideTemperature
- affects registration, CquartersMax
andquartersMin
- interval of allowed quarters count in housetimeToStart
- time interval to launch up all simulators, sstartPort
- initial port for simulators; ports[${startPort}..${startPort + count}]
would be occupiedregisterURI
- URI of available Device Proxy ServiceregisterOnStart
- determine whether to register simulator over DeviceProxyService or not