Commit 837750d
committed
TestBasicModbusProtocol: Add tests for broadcast and local echo
Broadcast packets do not wait for a response and thus any local echo
will be stuck in the recieve buffer. Test to ensure a subsequent packet
can be sent after the broadcast and that the local echo is handled
correctly.
Three tests are done: one where the broadcast echo and the subsequent message
echo are returned in two calls to datagram_recieved(), one where the entire
response is in one call, and one where the echo for the message packet
is split over two datagram_received() calls.1 parent f08af1e commit 837750d
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
165 | 190 | | |
166 | 191 | | |
167 | 192 | | |
| |||
0 commit comments