SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
wifi_espnow_if.hpp
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <cstdint>
13 
14 #include "spsp/wifi_types.hpp"
15 
16 namespace SPSP::WiFi
17 {
23  class IESPNOW
24  {
25  public:
31  virtual uint8_t getChannel() = 0;
32 
41  virtual void setChannel(uint8_t ch) = 0;
42 
48  virtual const ChannelRestrictions getChannelRestrictions() = 0;
49  };
50 } // namespace SPSP::WiFi
51 
SPSP::WiFi::IESPNOW::getChannel
virtual uint8_t getChannel()=0
Gets current WiFi channel.
SPSP::WiFi::IESPNOW::getChannelRestrictions
virtual const ChannelRestrictions getChannelRestrictions()=0
Gets currently set channel restrictions of WiFi adapter.
SPSP::WiFi::IESPNOW
Requirements of ESP-NOW from WiFi instance.
Definition: wifi_espnow_if.hpp:23
SPSP::WiFi::ChannelRestrictions
WiFi channel restrictions structure.
Definition: wifi_types.hpp:33
wifi_types.hpp
Common WiFi types (and some constants)
SPSP::WiFi::IESPNOW::setChannel
virtual void setChannel(uint8_t ch)=0
Sets current WiFi channel.