Merge branch 'main' into MQTT_Robin

This commit is contained in:
RobinVdB8
2023-12-10 15:58:57 +01:00
158 changed files with 16086 additions and 56 deletions

BIN
docs/img/QmodMaster.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

33
docs/modbus_tcp.md Normal file
View File

@@ -0,0 +1,33 @@
# Modbus-TCP
This is the documentation of the Modbus-TCP task
## Table of contents
- [Table of contents](#table-of-contents)
- [Initialization](#initialization)
- [Usage](#usage)
- [Guide](#Guide)
- [Extra](#Extra)
## Initialization
The Modbus task is initialized in the main function.
```c
// Initialize Modbus task
modbus_init();
```
## Usage
![QmodMaster.exe](./img/QmodMaster.jpg)
## Guide
- Set qmodmaster to tcp mode
- Set IP of device
- Set the device in multiple register mode
- Connect with the board
- Fill in the data as in the example
- Send the data
## Extra
The start addres is ignored and the timeout warnings arne normal because there is no response from my code back to QModMaster.

View File

@@ -9,6 +9,8 @@ there are currently 2 types of datagrams it processes:
It also writes the current owner's name on the screen and updates it everytime it's changed.
To use the Qt application for this part of the project you can use [App](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/V1.1)
## Table of contents
- [Introduction](#introduction)
- [Table of contents](#table-of-contents)
@@ -68,7 +70,7 @@ connected:
```
### Owner details interface
The interface to ask for the owner's details and change them is a modified version of the [Qt application](https://github.com/wimdams/Device_finder) Wim Dams build. His only has the functionality to ask for the owner's details.
The interface to ask for the owner's details and change them is a modified version of the [Qt application](https://github.com/wimdams/Device_finder) Wim Dams build. His only has the functionality to ask for the owner's details. The changed version can be found at [App](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/V1.1)
Just because the owner's details might want to be used in other code, some functions have been written for obtaining these in the STM32 code aswell.
#### Setting owner details