#include <Loom_Ethernet.h>
|
bool | moduleInitialized = true |
|
int | module_address = -1 |
|
Ethernet driver for loom devices
- Author
- Will Richards
◆ Loom_Ethernet() [1/2]
Loom_Ethernet::Loom_Ethernet |
( |
Manager & |
man, |
|
|
uint8_t |
mac[6], |
|
|
IPAddress |
ip |
|
) |
| |
Construct a new WiFi Manager
- Parameters
-
man | Reference to the manager to control all aspects of every module |
mac | The mac address of our device |
ip | The IP address we want to use if DHCP isn't active |
◆ Loom_Ethernet() [2/2]
Loom_Ethernet::Loom_Ethernet |
( |
Manager & |
man | ) |
|
Construct a new WiFi manager, passing the credentials in as a json document
- Parameters
-
man | Reference to the manager |
jsonString | JSON string to pull the credentials from |
◆ connect()
void Loom_Ethernet::connect |
( |
| ) |
|
Attempt to connect to the configured network
◆ getBroadcast()
IPAddress Loom_Ethernet::getBroadcast |
( |
| ) |
|
Get the broadcast IP of the network
◆ getClient()
EthernetClient & Loom_Ethernet::getClient |
( |
| ) |
|
|
inline |
Returns a reference to the Ethernet Client
- Returns
- Ethernet client
◆ getGateway()
IPAddress Loom_Ethernet::getGateway |
( |
| ) |
|
Get the gateway IP of the network
◆ getIPAddress()
IPAddress Loom_Ethernet::getIPAddress |
( |
| ) |
|
Get the IP address of the Ethernet module
◆ getSubnetMask()
IPAddress Loom_Ethernet::getSubnetMask |
( |
| ) |
|
Get the subnet mask of the connected network
◆ getUDP()
EthernetUDP * Loom_Ethernet::getUDP |
( |
| ) |
|
|
inline |
Get a reference to the UDP communication handler
◆ initialize()
void Loom_Ethernet::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ ipToString()
void Loom_Ethernet::ipToString |
( |
IPAddress |
ip, |
|
|
char |
array[16] |
|
) |
| |
|
inline |
Convert an IP address to a string
◆ loadConfigFromJSON()
void Loom_Ethernet::loadConfigFromJSON |
( |
char * |
json | ) |
|
Load the Ethernet connection information from JSON
This frees the input parameter
- Parameters
-
jsonString | JSON formatted string containing the mac address and IP |
◆ measure()
void Loom_Ethernet::measure |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ package()
void Loom_Ethernet::package |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_down()
void Loom_Ethernet::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
void Loom_Ethernet::power_up |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Internet/Connectivity/Loom_Ethernet/Loom_Ethernet.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Internet/Connectivity/Loom_Ethernet/Loom_Ethernet.cpp