2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef NET_RC_SOCKETADDRESS_H
43#define NET_RC_SOCKETADDRESS_H
45#include "net/SocketAddress.h"
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
51#include <bluetooth/bluetooth.h>
52#include <bluetooth/rfcomm.h>
60 class SocketAddress
final :
public net::SocketAddress<sockaddr_rc> {
66 explicit SocketAddress(
const std::string& btAddress);
68 SocketAddress(
const std::string& btAddress, uint8_t channel);
73 SocketAddress& setBtAddress(
const std::string& btAddress);
uint8_t getChannel() const
SocketAddress & setChannel(uint8_t channel)
std::string toString(bool expanded=true) const override
SocketAddress(const SockAddr &sockAddr, SockLen sockAddrLen)
std::string getBtAddress() const
SocketAddress(uint8_t channel)
SocketAddress * init() final
std::string getBtAddress() const
uint8_t getChannel() const
ConfigAddress(net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)
ConfigAddress & setChannel(uint8_t channel)
CLI::Option * btAddressOpt
ConfigAddress & setBtAddress(const std::string &btAddress)
ConfigAddress & setSocketAddress(const SocketAddress &socketAddress)
ConfigAddress & setChannelRequired(bool required=true)
ConfigAddress & setBtAddressRequired(bool required=true)