-
Notifications
You must be signed in to change notification settings - Fork 14
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
Parameter "cbHost" of ServiceGroup class not working (should be called "cbroker") #204
Comments
Thanks for your reporting! In order to reproduce your problem, could you share:
|
Sure! Regarding to the second point I checked the service health of my IoT Agent and it has the libVersion 3.4.0 and version 2.4.0. I also checked the Orion Context Broker, which has version 3.10.1. Now about the first point: I first created my local environment using the Docker images from this repo: https://github.com/FIWARE/tutorials.IoT-over-MQTT.git . Afterwards I provisioned a service group and simple motion sensor device with the filip library:
Here I used the parameter cbHost for my orion context broker. When I then publish an MQTT message like 'c|1' to change the count attribute of the device to the topic '/ul/4jggokgpepnvsb2uv4s40d59ov/motion001/attrs' nothing happens. But when I change the parameter "cbHost" to "cbroker" everything worked for me and the device attribute gets updated in the context broker. |
I think I can reproduce your error, but I think you make some little mistakes while provisioning the service_group = ServiceGroup(apikey="4jggokgpepnvsb2uv4s40d59ov",
entity_type="Thing",
resource="/iot/ul")
motion_sensor_device = Device(device_id="motion002",
entity_name="urn:ngsi-ld:Motion:002",
entity_type="Motion",
protocol="PDI-IoTA-UltraLight",
transport="MQTT",
attributes=[DeviceAttribute(object_id="c", name="count", type="Integer")]) |
This worked for me thanks 👍 It also works with |
Describe the bug
I tried to create different devices and a single service group and wanted to change different attributes by publishing MQTT messages to the IoT Agent. The provisioning worked for me with no errors, but when I tried to change attribute values of my devices via MQTT nothing happened. When I changed the name of the attribute "cbHost" of the class "ServiceGroup" to "cbroker" everything worked for me.
The text was updated successfully, but these errors were encountered: