|
ESP32 MQTT IoT Communication
|
class representing an IoT device extends Writer More...


Public Member Functions | |
| str | address (self) |
| Returns the MAC Address of the Device class. | |
| None | __init__ (self, str device_address, str device_type) |
| Device Constructor. | |
| str | sql_query (self) |
| Returns The Object encoded into an "INSERT" SQL statement. | |
Public Member Functions inherited from device_writer.Writer | |
| str | __str__ (self) |
| Returns an SQL insert query as a str. | |
| None | insert (self, sqlite3.Connection db_connection) |
| Inserts the object into the provided database. | |
Protected Attributes | |
| _device_address | |
| mac address of the device | |
| _device_type | |
| Type of the device. | |
class representing an IoT device extends Writer
A class representing an IoT device
| None device_writer.DeviceWriter.__init__ | ( | self, | |
| str | device_address, | ||
| str | device_type | ||
| ) |
Device Constructor.
| device_address | MAC address of the device |
| device_type | Type of the device |
Device Constructor
| str device_writer.DeviceWriter.address | ( | self | ) |
Returns the MAC Address of the Device class.
Returns the MAC Address of the Device class
| str device_writer.DeviceWriter.sql_query | ( | self | ) |
Returns The Object encoded into an "INSERT" SQL statement.
Returns The Object encoded into an "INSERT" SQL statement
Reimplemented from device_writer.Writer.