Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation for the IoniqEVMonitor #44

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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