PluginFlyvemdmMqtthandler - btry/glpi-plugin GitHub Wiki
- Class name: PluginFlyvemdmMqtthandler
- Namespace:
- Parent class: sskaje\mqtt\MessageHandler
protected \PluginFlyvemdmMqttlog $log
- Visibility: protected
protected integer $startTime
- Visibility: protected
protected mixed $flyveManifestMissing = true
- Visibility: protected
protected mixed $publishedVersion = null
- Visibility: protected
protected mixed $instance = null
- Visibility: protected
- This property is static.
mixed PluginFlyvemdmMqtthandler::__construct()
- Visibility: protected
\the PluginFlyvemdmMqtthandler::getInstance()
Gets the instance of the PluginFlyvemdmMqtthandler
- Visibility: public
- This method is static.
mixed PluginFlyvemdmMqtthandler::publishManifest(\sskaje\mqtt\MQTT $mqtt)
Maintains a MQTT topic to publish the current version of the backend
- Visibility: protected
- $mqtt sskaje\mqtt\MQTT
mixed PluginFlyvemdmMqtthandler::pingresp(\sskaje\mqtt\MQTT $mqtt, \sskaje\mqtt\Message\PINGRESP $pingresp_object)
Handle MQTT Ping response
- Visibility: public
- $mqtt sskaje\mqtt\MQTT
- $pingresp_object sskaje\mqtt\Message\PINGRESP
mixed PluginFlyvemdmMqtthandler::publish(\sskaje\mqtt\MQTT $mqtt, \sskaje\mqtt\Message\PUBLISH $publish_object)
Handle MQTT publish messages
- Visibility: public
- $mqtt sskaje\mqtt\MQTT
- $publish_object sskaje\mqtt\Message\PUBLISH
mixed PluginFlyvemdmMqtthandler::updateAgentVersion(string $topic, string $message)
Update the version of an agent
- Visibility: protected
- $topic string
- $message string
mixed PluginFlyvemdmMqtthandler::publishFlyveManifest()
Publishes the current version of Flyve
- Visibility: protected
mixed PluginFlyvemdmMqtthandler::updateInventory(string $topic, string $message)
Updates the inventory
- Visibility: protected
- $topic string
- $message string
mixed PluginFlyvemdmMqtthandler::updateLastContact(string $topic, string $message)
Updates the last contact of the agent
The data to update is a datetime
- Visibility: protected
- $topic string
- $message string
mixed PluginFlyvemdmMqtthandler::deleteAgent(string $topic, string $message)
Deletes the agent
- Visibility: protected
- $topic string
- $message string
mixed PluginFlyvemdmMqtthandler::saveGeolocationPosition(string $topic, string $message)
Saves geolocation position
- Visibility: protected
- $topic string
- $message string
mixed PluginFlyvemdmMqtthandler::updateTaskStatus(string $topic, $message)
Update the status of a task from a notification sent by a device
- Visibility: protected
- $topic string
- $message mixed
mixed PluginFlyvemdmMqtthandler::updateOnlineStatus(string $topic, $message)
Update the status of a task from a notification sent by a device
- Visibility: protected
- $topic string
- $message mixed