SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Public Member Functions | List of all members
SPSP::WiFi::Dummy Class Reference

Dummy WiFi adapter. More...

#include <wifi_dummy.hpp>

Inheritance diagram for SPSP::WiFi::Dummy:
Inheritance graph
[legend]
Collaboration diagram for SPSP::WiFi::Dummy:
Collaboration graph
[legend]

Public Member Functions

uint8_t getChannel ()
 Gets current WiFi channel. More...
 
void setChannel (uint8_t ch)
 Sets current channel. More...
 
const ChannelRestrictions getChannelRestrictions ()
 Get the Channel Restrictions object. More...
 
uint8_t getChannel ()
 Gets current WiFi channel. More...
 
void setChannel (uint8_t ch)
 Sets current channel. More...
 
const ChannelRestrictions getChannelRestrictions ()
 Get the Channel Restrictions object. More...
 

Detailed Description

Dummy WiFi adapter.

Dummy WiFi adapter for testing.

It's not (currently) possible to change channels in monitor mode.

Allowed channels are 1 - 5.

Definition at line 25 of file linux/spsp/wifi_dummy.hpp.

Member Function Documentation

◆ getChannel() [1/2]

uint8_t SPSP::WiFi::Dummy::getChannel ( )
inlinevirtual

Gets current WiFi channel.

Returns
Channel number

Implements SPSP::WiFi::IESPNOW.

Definition at line 33 of file linux/spsp/wifi_dummy.hpp.

◆ getChannel() [2/2]

uint8_t SPSP::WiFi::Dummy::getChannel ( )
inlinevirtual

Gets current WiFi channel.

Returns
Channel number

Implements SPSP::WiFi::IESPNOW.

Definition at line 35 of file testing/spsp/wifi_dummy.hpp.

◆ getChannelRestrictions() [1/2]

const ChannelRestrictions SPSP::WiFi::Dummy::getChannelRestrictions ( )
inlinevirtual

Get the Channel Restrictions object.

Returns
const ChannelRestrictions

Implements SPSP::WiFi::IESPNOW.

Definition at line 52 of file linux/spsp/wifi_dummy.hpp.

◆ getChannelRestrictions() [2/2]

const ChannelRestrictions SPSP::WiFi::Dummy::getChannelRestrictions ( )
inlinevirtual

Get the Channel Restrictions object.

Returns
const ChannelRestrictions

Implements SPSP::WiFi::IESPNOW.

Definition at line 55 of file testing/spsp/wifi_dummy.hpp.

◆ setChannel() [1/2]

void SPSP::WiFi::Dummy::setChannel ( uint8_t  ch)
inlinevirtual

Sets current channel.

Parameters
chChannel

Implements SPSP::WiFi::IESPNOW.

Definition at line 45 of file testing/spsp/wifi_dummy.hpp.

◆ setChannel() [2/2]

void SPSP::WiFi::Dummy::setChannel ( uint8_t  ch)
inlinevirtual

Sets current channel.

Doesn't do anything.

Parameters
chChannel

Implements SPSP::WiFi::IESPNOW.

Definition at line 45 of file linux/spsp/wifi_dummy.hpp.


The documentation for this class was generated from the following file: