Skip to content

Commit

Permalink
Merge pull request #44 from Zehelein/IoniqEVMonitorDocu
Browse files Browse the repository at this point in the history
Added documentation for the IoniqEVMonitor
  • Loading branch information
hokus15 committed Jun 25, 2024
2 parents c1d7211 + 6c56dad commit c562fab
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
41 changes: 41 additions & 0 deletions docs/monitors/HyundaiIoniqEV28.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# Hyundai Ioniq EV (28Kwh)

Reads data from the OBDII Bluetooth Dongle.

## Configuration

`class`: Class name implementing the monitor.

`"class": "iotconnect.monitors.ioniqev.IoniqEVMonitor"`

`port`: The UNIX device file of the adapter.

`"port": "/dev/rfcomm0"`

`baudrate`: The baudrate to use for the connection e.g. 9600, 19200, 38400, ...

`"baudrate": 9600`

`fast`: Set to "True" to optimize the commands sent to the adapter.

`"fast": "False"`

`timeout`: The connection timeout in seconds.

`"timeout": 30`

`interval`: The interval in seconds to read new data.

`"interval": 30`

Sample config:

```
{
"class": "iotconnect.monitors.ioniqev.IoniqEVMonitor",
"port": "/dev/rfcomm0",
"baudrate": 9600,
"fast": "False",
"timeout": 30,
"interval": 10
}
```
8 changes: 4 additions & 4 deletions docs/publishers/MQTTPublisher.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It publishes the monitored data to an MQTT broker.

```"broker": "test.mosquitto.org"```

```port```: MQTT broker port.
```port```: MQTT broker port for TLS.

```"port": 8883```

Expand All @@ -28,11 +28,11 @@ It publishes the monitored data to an MQTT broker.

```topic_prefix```: Topic prefix that will be used to publish information.

```qos```: QOS to be used when publishing to MQTT. Default 0.
```qos```: Quality of service to be used when publishing to MQTT. Default 0 (at most once message delivery).

```retain```: Retain flag to be used when publishing to MQTT. Default True.
```retain```: Retain flag to be used when publishing to MQTT. Default True (retain the last message per topic).

Note that ```context``` provided to the publish method will be appended to this topic. So if the ```topic_prefix``` is ```car/sensor/my-car/``` and the context is ```state``` the topic where the data will be published will be: ```car/sensor/my-car/state```.
Note that the ```context``` provided to the publish method will be appended to this topic. So if the ```topic_prefix``` is ```car/sensor/my-car/``` and the context is ```state``` the topic where the data will be published will be: ```car/sensor/my-car/state```.

*Note that topic_prefix should end with forward slash ```/```.

Expand Down

0 comments on commit c562fab

Please sign in to comment.