|Error code 4103 and 5000 when receiving notification response [message #1741615]
||Fri, 26 August 2016 10:48
| Son Duong
Registered: June 2016
I have a scenarior like: MY_DEVICE AE is in in-cse and it has the poa address as http://127.0.0.1:1400/monitor. This address is a http server as described here in the tutorial: http://wiki.eclipse.org/OM2M/one/REST_API, which will listen for some notification. In mn-cse I have an AE SMART_METER.
The MY_DEVICE will subscribe to SMART_METER/DATA to receive the notification:
targetId = "/" + CSE_ID + "/" + CSE_NAME + "/" + sensorId + "/" + DATA;
Subscription sub = new Subscription();
As far as I understand that if new data is written to SMART_METER/DATA, a notification will be sent to /in-cse/in-name/MY_DEVICE and based on the poa of this MY_DEVICE, the notification will be continue to redirect to the poa address which is the http monitor server http://127.0.0.1:1400/monitor.
I have tested this case but I got two errors code: 4103 when creating the SUB container in SMART_METER/DATA and 5000 when sending the notification to the monitor server
I know my post maybe similar to this previous post: https://www.eclipse.org/forums/index.php/t/1079634/ and I also tried the solution in this post by replacing the line 233 of the file: org/eclipse/om2m/core/notifier/Notifier.java
request.setFrom("/" + Constants.CSE_ID);
but still no success.
Can anyone help me, please?
I also attach here some images and the log files also.
Thank you in advanced!
(Size: 44.10KB, Downloaded 109 times)
(Size: 29.94KB, Downloaded 100 times)
Powered by FUDForum
. Page generated in 0.02088 seconds