Communication between two plugins [message #1717627] |
Tue, 15 December 2015 06:06  |
Eclipse User |
|
|
|
Hello,
I added two new plugins to org.eclipse.om2m: sensor and actuator. Sensor is on GSCL and actuator is on NSCL. Now I'm stuck at the point that actuator is created under "applications" on GSCL and NSCL, also sensor data is sent to actuator on GSCL.
I've put dependency on sensor plugin towards actuator and I'm calling method from AktuatorMonitor to send sensor data. I figured that everytime I call the method from actuator plugin , ACTUATOR is created on GSCL.
Can I somehow make "communication" between them without creating actuator on GSCL (sensor[GSCL] gets new measurement and sends it to actuator[NSCL])?
Thank You
|
|
|
|
Re: Communication between two plugins [message #1717974 is a reply to message #1717814] |
Fri, 18 December 2015 06:20   |
Eclipse User |
|
|
|
hi,
ok for 1) and 2) I get Your point.
For 3) scenario is: two sensors(GSCL) get values every 10sec, then they send it to actuator (NSCL). For this example I have two states: "cheap" and "expensive" network which will be randomly generated every 20sec . If network is "cheap", actuator accepts the values, if "expensive" he returns time to wait for resend (lets say 5min).
For now I managed to put or "send" the values to actuator with "SCL.doRequest(new RequestIndication("CREATE", targetAktuator, REQENTITY, content));" - for now without the network price.
Thank You,
Fran
[Updated on: Fri, 18 December 2015 06:20] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05801 seconds