Closed arilwan closed 5 years ago
@dcalvoalonso Do you please understand why I have this problem?
I tried changing the value of resource that Agent is currently observing (from client terminal) , that too isn't permissible, as shown below:
>change /3303/0/0 35
buffer = /3303/0/0 35
[lwm2m_stringToUri:215] buffer_len: 9, buffer: "/3303/0/0"
[lwm2m_stringToUri:268] Parsed characters: 9
[lwm2m_stringToUri:269] /3303/0/0
write not supported for specified resource!
This issue is solved using resource internal mapping on device provision as shown below:
time=2019-02-15T15:59:52.832Z | lvl=DEBUG | corr=n/a | trans=n/a | op=LWM2MLib.InformationReporting | msg=Observing value from resource /3303/0/5700 in device [1]
Issue closed.
I am trying to observe temperature changes from my LWM2M client.
/3303/0/0
. However, the resource I want to observe, which is explicitly declared in my 3303 object is 5700 i.e./3303/0/5700
. Agent log:As you can see, the Agent is observing a wrong resource
/3303/0/0
instead of/3303/0/5700
. After like 3-4minutes, the Agent then reports following error in the log:{"time":"2019-02-15T11:19:38.548Z","lvl":"ERROR","msg":"Could not complete the observer creation processes due to the following error: [object Object]"}
Client then stopped. Client's log:[root@fiware fiware]# curl -X GET 'http://localhost:4041/iot/devices' -H 'fiware-service: smartGondor' -H 'fiware-servicepath: /gardens' {"count":1,"devices":[{"device_id":"raspiSensorTV","service":"smartGondor","service_path":"/gardens","entity_name":"Device:raspiSensorTV","entity_type":"Device","attributes":[{"object_id":"Temperature Sensor","name":"Temperature Sensor","type":"Float"}],"lazy":[],"commands":[],"static_attributes":[]}]}
[root@fiware fiware]# curl -X GET 'http://localhost:4041/iot/devices' -H 'fiware-service: smartGondor' -H 'fiware-servicepath: /gardens' {"count":1,"devices":[{"device_id":"raspiSensorTV","service":"smartGondor","service_path":"/gardens","entity_name":"Device:raspiSensorTV","entity_type":"Device","attributes":[{"object_id":"Temperature Sensor","name":"Temperature Sensor","type":"Float"}],"lazy":[{"name":"Short Server ID","type":"Integer"},{"name":"Lifetime","type":"Integer"},{"name":"Default Minimum Period","type":"Integer"},{"name":"Default Maximum Period","type":"Integer"},{"name":"Disable","type":""},{"name":"Disable Timeout","type":"Integer"},{"name":"Notification Storing When Disabled or Offline","type":"Boolean"},{"name":"Binding","type":"String"},{"name":"Registration Update Trigger","type":""},{"name":"Object ID","type":"Integer"},{"name":"Object Instance ID","type":"Integer"},{"name":"ACL","type":"Integer"},{"name":"Access Control Owner","type":"Integer"},{"name":"Manufacturer","type":"String"},{"name":"Model Number","type":"String"},{"name":"Serial Number","type":"String"},{"name":"Firmware Version","type":"String"},{"name":"Reboot","type":""},{"name":"Factory Reset","type":""},{"name":"Available Power Sources","type":"Integer"},{"name":"Power Source Voltage","type":"Integer"},{"name":"Power Source Current","type":"Integer"},{"name":"Battery Level","type":"Integer"},{"name":"Memory Free","type":"Integer"},{"name":"Error Code","type":"Integer"},{"name":"Reset Error Code","type":""},{"name":"Current Time","type":"Time"},{"name":"UTC Offset","type":"String"},{"name":"Timezone","type":"String"},{"name":"Supported Binding and Modes","type":"String"},{"name":"Network Bearer","type":"Integer"},{"name":"Available Network Bearer","type":"Integer"},{"name":"Radio Signal Strength","type":"Integer"},{"name":"Link Quality","type":"Integer"},{"name":"IP Addresses","type":"String"},{"name":"Router IP Addresse","type":"String"},{"name":"Link Utilization","type":"Integer"},{"name":"APN","type":"String"},{"name":"Cell ID","type":"Integer"},{"name":"SMNC","type":"Integer"},{"name":"SMCC","type":"Integer"},{"name":"Package","type":"Opaque"},{"name":"Package URI","type":"String"},{"name":"Update","type":""},{"name":"State","type":"Integer"},{"name":"Update Supported Objects","type":"Boolean"},{"name":"Update Result","type":"Integer"},{"name":"Latitude","type":"String"},{"name":"Longitude","type":"String"},{"name":"Altitude","type":"String"},{"name":"Uncertainty","type":"String"},{"name":"Velocity","type":"Opaque"},{"name":"Timestamp","type":"Time"},{"name":"SMS Tx Counter","type":"Integer"},{"name":"SMS Rx Counter","type":"Integer"},{"name":"Tx Data","type":"Integer"},{"name":"Rx Data","type":"Integer"},{"name":"Max Message Size","type":"Integer"},{"name":"Average Message Size","type":"Integer"},{"name":"StartOrReset","type":""},{"name":"Temperature Sensor#0","type":"string"}],"commands":[],"static_attributes":[]}]}