22#ifndef DETERMINISTICESPASYNCWEBSERVER_LONWORKS_H
23#define DETERMINISTICESPASYNCWEBSERVER_LONWORKS_H
29#if DETWS_ENABLE_LONWORKS
34 static constexpr uint16_t LON_MSG_NV_UPDATE = 0x80;
35 static constexpr uint16_t LON_MSG_NV_POLL = 0x81;
36 static constexpr uint16_t LON_NV_SELECTOR_MAX = 0x3FFF;
47size_t detws_lon_build_nv(uint8_t msg_code, uint16_t selector,
const uint8_t *value,
size_t value_len, uint8_t *out,
60bool detws_lon_parse_nv(
const uint8_t *pdu,
size_t len, LonNv *out);
63void detws_lon_snvt_temp_encode(
double celsius, uint8_t out[2]);
65double detws_lon_snvt_temp_decode(
const uint8_t in[2]);
68void detws_lon_snvt_switch_encode(
double percent, uint8_t state, uint8_t out[2]);
70void detws_lon_snvt_switch_decode(
const uint8_t in[2],
double *percent, uint8_t *state);
User-facing configuration for DeterministicESPAsyncWebServer.