Hello All,
Is there any jumpstarts available for sensor status monitoring service?
From my rifidi app, I'm trying to subscribe to a sensor subscriber to monitor for any sensor property changes. Here is my piece of code that subscribes to the same.
RFIDIntelSensorSubscriber sub = new RFIDIntelSensorSubscriber();
Set<String> sensorsToMonitor = new HashSet<String>();
sensorsToMonitor.add("MotoLLRP");
this.sensorMonitoringService.subscribe(sub,sensorsToMonitor);
and I've a sensor subscriber with the following nomenclature
public void handleSensorStatusEvent(SensorStatusEvent arg0) {
System.out.println("Sensor ID changed "+arg0.getSensorID());
System.out.println("Sensor Timestamp changed "+arg0.getTimestamp());
}
As per the developer guide, it says that the subscribers will be notified in case of any sensor changes. I'm trying to disconnect/connect the session to the sensor. Ideally, I'm expecting my handleSensorStatusEvent to trigger whenever my session either connects or disconnects. But this doesn't happen.
Any insights?
Jumpstarts for Sensor Status Monitoring Service?
-
- Posts: 16
- Joined: Tue Jun 14, 2016 2:02 am
Re: Jumpstarts for Sensor Status Monitoring Service?
I've looped in teh engineering team to see if there is a way to handle in the way you describe and will post on this thread
Currently in dashboard ui will poll the rest readstatus rest command for status - http://wiki.rifidi.net/index.php?title= ... nd_example
the readerstatus rest command uses the Rifidi internal api -http://wiki.rifidi.net/index.php?title= ... _Jumpstart
also here is the source of all Rifidi Rest commands where Rifidi internal api is used - https://transcends.svn.cloudforge.com/r ... tImpl.java
Note: it's on the near term roadmap to publish standard reader, application and antenna events to MQTT topics for more of an event driven model
Currently in dashboard ui will poll the rest readstatus rest command for status - http://wiki.rifidi.net/index.php?title= ... nd_example
the readerstatus rest command uses the Rifidi internal api -http://wiki.rifidi.net/index.php?title= ... _Jumpstart
also here is the source of all Rifidi Rest commands where Rifidi internal api is used - https://transcends.svn.cloudforge.com/r ... tImpl.java
Note: it's on the near term roadmap to publish standard reader, application and antenna events to MQTT topics for more of an event driven model
Who is online
Users browsing this forum: No registered users and 3 guests