Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-data.sh on Dummy Devices is not connectiing on the Conext Broker port #178

Open
pedromujica1 opened this issue Sep 19, 2024 · 0 comments

Comments

@pedromujica1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant