mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
allow read commands with length
This commit is contained in:
@@ -949,14 +949,9 @@ bool EMSESP::command_info(uint8_t device_type, JsonObject & json, const int8_t i
|
||||
return has_value;
|
||||
}
|
||||
|
||||
// send a read request, passing it into to the Tx Service, with offset
|
||||
void EMSESP::send_read_request(const uint16_t type_id, const uint8_t dest, const uint8_t offset) {
|
||||
txservice_.read_request(type_id, dest, offset);
|
||||
}
|
||||
|
||||
// send a read request, passing it into to the Tx Service, with no offset
|
||||
void EMSESP::send_read_request(const uint16_t type_id, const uint8_t dest) {
|
||||
txservice_.read_request(type_id, dest, 0); // 0 = no offset
|
||||
// send a read request, passing it into to the Tx Service, with optional offset and length
|
||||
void EMSESP::send_read_request(const uint16_t type_id, const uint8_t dest, const uint8_t offset, const uint8_t length) {
|
||||
txservice_.read_request(type_id, dest, offset, length);
|
||||
}
|
||||
|
||||
// sends write request
|
||||
|
||||
Reference in New Issue
Block a user