The Berto IOT Client driver demostration driver, with source code included, that shows how you can integrate your own drivers with the Berto Cloud driver to uses it’s SMTP Mail and MQTT Client proxy functions.
There are properties defined for each function along with an Action to test each function.
Properties
SMTP Properties
- SMTP Server - The SMTP server address.
- SMTP Port - The SMTP server port.
- SMTP Username - SMTP server account username.
- SMTP Password - SMTP server account password.
- Email Address - Email address to send a test email to.
- Subject -The subject of the test email.
- Message To Send - The message body of the test email.
- Attachment URL - A URL that, if set, will be fetched and added as an attachment.
MQTT Properties
- MQTT Server - The MQTT Broker to connect to in the form mqtt:// or mqtts:// followed by the hostname:[port]. The port number is optional and defaults to 1883 for mqtt connections and port 8883 for mqtts SSL connections. If you have a Berto Hub you should enter it's IP address here in the format mqtt://{ip address}.
- MQTT Username - Broker username.
- MQTT Password - Broker password.
- Quality Of Service - MQTT QoS value used for subscriptions.
- Subscribe To Topics - MQTT topics that will be subscribed to, multiple topics can be separated with commas.
- Publish Message To Topic - A message to publish specifiying the topic followed by a space and then the message.
- Message Received - Any messages received from the connected MQTT server.
Actions
- Test Mail - Send a test email using the SMTP properties defined.
- Test MQTT - Connect to the MQTT server using the MQTT properties defined. You can then publish messages from the Publish Message To Topic property.
Licence
DM