17 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
Returns:
true
if the receiver was registered successful,
false
elsewise
5.6.
address
uint64 Enc28J60::address( );
Description:
Returns the current MAC address of that interface
Returns:
Current MAC-Address of the Ethernet interface. REMEMBER: Only the lower 48bits must be
considered for determining the address, the upper 16bits are usually set to zero.
5.7.
max_packet_size
uint32 Enc28J60::max_packet_size( );
Description:
Returns the maximum size of a packet that can be sent over that interface at once
Returns:
Maximum Transmission Unit (MTU) of the link. For Ethernet this value is 1500bytes.
6.
Ethernet Gateway Module Demo Application
The Ethernet Gateway Module demo application exemplifies how an application can make use of the
Net10Module
and
SDCard
API. It shows how to
•
switch on and off the LEDs,
•
set the ButtonHandler to handle events raised by pressing the button B1,
•
as well as read and write data to an microSD card
Required modules:
Net10 module
#define ISENSE_ENABLE_NET10_MODULE
VSNPRINTF 2
#define ISENSE_ENABLE_VSNPRINTF_2
SD Card module
#define ISENSE_ENABLE_ETHERNET_MODULE_SD_CARD
6.1.
Obtaining the Ethernet Gateway Module Demo Application
The NET10 Ethernet Gateway Demo Application can be obtained from [7].