$timeSincePingReq
$timeSincePingReq : integer
Client class for MQTT
setCryptoProtocol(string $protocol)
Enables TLS connection and sets crypto protocol Valid values: ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
See this page for more info on values: http://php.net/manual/en/migration56.openssl.php and also this page: https://wiki.php.net/rfc/improved-tls-constants
| string | $protocol | Set encryption protocol |
publish(string $topic, string $message, integer $qos, integer $retain) : boolean
Publish message to server
| string | $topic | Topic to which message is published to |
| string | $message | Message to publish |
| integer | $qos | QoS of message (0/1) |
| integer | $retain | If set to 1 , server will try to retain the message |
Did publish work or not