Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_MultiSwitchHandler.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Jul 19, 2019
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#include "common/cs_Types.h"
12
14private:
16
17public:
20 static MultiSwitchHandler instance;
21 return instance;
22 }
24 void operator=(MultiSwitchHandler const&) = delete;
25
26 void init();
28 // Handle events as EventListener
29 void handleEvent(event_t& event);
30
31private:
33};
Event listener.
Definition: cs_EventListener.h:17
Definition: cs_MultiSwitchHandler.h:13
void handleMultiSwitch(internal_multi_switch_item_t *cmd, cmd_source_with_counter_t &source)
MultiSwitchHandler(MultiSwitchHandler const &)=delete
void operator=(MultiSwitchHandler const &)=delete
static MultiSwitchHandler & getInstance()
Gets a static singleton (no dynamic memory allocation)
Definition: cs_MultiSwitchHandler.h:19
stone_id_t _ownId
Definition: cs_MultiSwitchHandler.h:32
void handleEvent(event_t &event)
Handle events.
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition: cs_Event.h:26
uint8_t stone_id_t
Definition: cs_Typedefs.h:23
Struct that tells where a command originated from.
Definition: cs_CmdSource.h:54
A single multi switch packet, with target id.
Definition: cs_PacketsInternal.h:131