You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I was testing the Dummy devices examples on /examples/dummy-devices and the registration process occurred successfully however when i tried to run
bash test-data.sh
The following error appeared
read sent data from orion
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 1026 after 0 ms: Connection refused
I think the Dummy context broker is not connection the port 1026 for some reason. When i run "docker ps" only the following containers appear
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9900e9df6726 ioeari/iotagent-lora "bin/iotagent-lora d…" 15 minutes ago Up 15 minutes 0.0.0.0:4041->4041/tcp, :::4041->4041/tcp dummy-devices-iotagent-lora-1
23bc74f27867 mongo:4 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp dummy-devices-mongodb-1
e268bd3f4f86 eclipse-mosquitto "/docker-entrypoint.…" 15 minutes ago Up 15 minutes 0.0.0.0:1883->1883/tcp, :::1883->1883/tcp, 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp dummy-devices-mqtt-1
I also did "curl --location --request GET 'localhost:4041/iot/services?resource=70B3D57ED00006B2&apikey=' --header 'fiware-service: smartgondor' --header 'fiware-servicepath: /environment' | jq" and worked fine
with the following response
" % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 741 100 741 0 0 98341 0 --:--:-- --:--:-- --:--:-- 103k
{
"count": 1,
"services": [
{
"commands": [],
"lazy": [],
"attributes": [
{
"object_id": "temperature_1",
"name": "temperature",
"type": "Number"
},
{
"object_id": "barometric_pressure_0",
"name": "pressure",
"type": "Number"
},
{
"object_id": "relative_humidity_2",
"name": "relative_humidity",
"type": "Number"
}
],
"_id": "66ec5e8dfd927575b5ed8892",
"resource": "70B3D57ED00006B2",
"apikey": "",
"service": "smartgondor",
"subservice": "/environment",
"__v": 0,
"static_attributes": [],
"internal_attributes": [
{
"lorawan": {
"application_server": {
"host": "mqtt",
"username": "admin",
"password": "password",
"provider": "TTN"
},
"app_eui": "70B3D57ED00006B2",
"application_id": "demoTTN",
"application_key": "BE6996EEE2B2D6AFFD951383C1F3C3BD",
"data_model": "cayennelpp"
}
}
],
"entity_type": "WeatherObserved"
}
]
}
I appreciate the help! Thank for any reponses
The text was updated successfully, but these errors were encountered:
Hello! I was testing the Dummy devices examples on /examples/dummy-devices and the registration process occurred successfully however when i tried to run
bash test-data.sh
The following error appeared
read sent data from orion
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 1026 after 0 ms: Connection refused
I think the Dummy context broker is not connection the port 1026 for some reason. When i run "docker ps" only the following containers appear
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9900e9df6726 ioeari/iotagent-lora "bin/iotagent-lora d…" 15 minutes ago Up 15 minutes 0.0.0.0:4041->4041/tcp, :::4041->4041/tcp dummy-devices-iotagent-lora-1
23bc74f27867 mongo:4 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp dummy-devices-mongodb-1
e268bd3f4f86 eclipse-mosquitto "/docker-entrypoint.…" 15 minutes ago Up 15 minutes 0.0.0.0:1883->1883/tcp, :::1883->1883/tcp, 0.0.0.0:9001->9001/tcp, :::9001->9001/tcp dummy-devices-mqtt-1
I also did "curl --location --request GET 'localhost:4041/iot/services?resource=70B3D57ED00006B2&apikey=' --header 'fiware-service: smartgondor' --header 'fiware-servicepath: /environment' | jq" and worked fine
with the following response
" % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 741 100 741 0 0 98341 0 --:--:-- --:--:-- --:--:-- 103k
{
"count": 1,
"services": [
{
"commands": [],
"lazy": [],
"attributes": [
{
"object_id": "temperature_1",
"name": "temperature",
"type": "Number"
},
{
"object_id": "barometric_pressure_0",
"name": "pressure",
"type": "Number"
},
{
"object_id": "relative_humidity_2",
"name": "relative_humidity",
"type": "Number"
}
],
"_id": "66ec5e8dfd927575b5ed8892",
"resource": "70B3D57ED00006B2",
"apikey": "",
"service": "smartgondor",
"subservice": "/environment",
"__v": 0,
"static_attributes": [],
"internal_attributes": [
{
"lorawan": {
"application_server": {
"host": "mqtt",
"username": "admin",
"password": "password",
"provider": "TTN"
},
"app_eui": "70B3D57ED00006B2",
"application_id": "demoTTN",
"application_key": "BE6996EEE2B2D6AFFD951383C1F3C3BD",
"data_model": "cayennelpp"
}
}
],
"entity_type": "WeatherObserved"
}
]
}
I appreciate the help! Thank for any reponses
The text was updated successfully, but these errors were encountered: