11 using namespace aruna;
23 for (
auto &i :
level) {
45 switch (received_type) {
52 received_type = type_t::UNKNOWN;
59 if ((uint8_t)
level[(uint8_t) received_type] <= (uint8_t) status_buffer->
level) {
75 level[(uint8_t) type] = new_level;
level_t
SIS urgency level.
uint8_t data_lenght
size of the data
err_t start()
start SIS report watcher thread
port_t from_port
channel who is sending the data.
bool receive(transmitpackage_t *tpp)
handeler to handle incomming connections
void set_level(type_t type, level_t new_level)
set level of alert on SIS level.
sis::level_t level[(uint8_t) sis::type_t::MAX]
void * watch(void *)
Watch SIS reports task.
comm::channel_t * comm_channel
log::channel_t * log_channel
endpoint type of a comm channel
int warning(const char *format,...)
log warning message
int error(const char *format,...)
log error message
status that is to be reported to the watcher
virtual void decode(uint8_t *to_decode)
static const comm::port_t port
uint8_t * data_received
pointer to where incoming data must be stored.
int dump(level_t level, uint8_t *bin, size_t size)
dump array of bin data