Skip to content

Commit cba8c80

Browse files
committed
2 parents 935a1ed + c9e0005 commit cba8c80

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

README.md

+22-8
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ nWdtApps = 4
5757
```
5858

5959
### Fields
60-
`name` : Name of the application.
61-
`start_delay` : Delay in seconds before starting the application.
62-
`ping_delay` : Time in seconds to wait before expecting a ping from the application.
63-
`ping_interval` : Maximum time period in seconds between pings.
64-
`cmd` : Command to start the application.
60+
- `name` : Name of the application.
61+
- `start_delay` : Delay in seconds before starting the application.
62+
- `ping_delay` : Time in seconds to wait before expecting a ping from the application.
63+
- `ping_interval` : Maximum time period in seconds between pings.
64+
- `cmd` : Command to start the application.
6565

6666
## Example Heartbeat Message Code
6767
The managed processes must send a message containing their PID over UDP. Below are example heartbeat message codes in various languages.
@@ -91,7 +91,7 @@ public class ProcessHeartbeat {
9191
```
9292

9393
<details>
94-
<summary>Click for other examples in C, C++, Qt, C#, Python and Shell Script</summary>
94+
<summary>Click for example in C</summary>
9595

9696
### C
9797
```c
@@ -130,7 +130,10 @@ void sendPIDOverUDP(int port) {
130130
close(sockfd);
131131
}
132132
```
133-
133+
</details>
134+
<details>
135+
<summary>Click for example in C++</summary>
136+
134137
### C++
135138
```cpp
136139
#include <iostream>
@@ -167,6 +170,9 @@ void sendPIDOverUDP(int port) {
167170
close(sockfd);
168171
}
169172
```
173+
</details>
174+
<details>
175+
<summary>Click for example in Qt</summary>
170176

171177
### Qt (C++)
172178
```cpp
@@ -182,6 +188,9 @@ void sendPIDOverUDP(int port) {
182188
udpSocket.writeDatagram(data, QHostAddress::Broadcast, port);
183189
}
184190
```
191+
</details>
192+
<details>
193+
<summary>Click for example in C#</summary>
185194
186195
### C#
187196
```csharp
@@ -211,6 +220,9 @@ public class Program
211220
}
212221
}
213222
```
223+
</details>
224+
<details>
225+
<summary>Click for example in Python</summary>
214226

215227
### Python
216228
```python
@@ -222,6 +234,9 @@ pid = str(os.getpid())
222234
data = 'p' + pid
223235
sock.sendto(data.encode('utf-8'), ('localhost', 12345))
224236
```
237+
</details>
238+
<details>
239+
<summary>Click for example in Shell Script</summary>
225240

226241
### Shell Script
227242
```bash
@@ -235,7 +250,6 @@ sendPIDOverUDP() {
235250

236251
sendPIDOverUDP 12345
237252
```
238-
239253
</details>
240254

241255
## Statistics Logging

0 commit comments

Comments
 (0)