10 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
3.4.
set_button_handler
bool Net10Module::set_button_handler( ButtonHandler* button_handler );
Description:
Sets the
ButtonHandler
that will be called when the button B1 is pressed or released. The
ButtonHandler
class can be found in
isense/button_handler.h
Parameters:
button_handler
Instance of the class
ButtonHandler
that should be called when the
button is pressed or released.
Returns:
true
if the
ButtonHandler
could be registered,
false
elsewise.
3.5.
ethernet
Enc28J60* Net10Module::ethernet( );
Description:
Returns the instance of the Enc28J60 Ethernet module, that was instantiated together with the
Net10Module
Returns:
Pointer to the
Enc28J60
instance of the
Net10Module
instantiated by the constructor
Required modules:
Ethernet Module
#define ISENSE_ENABLE_ETHERNET_MODULE
3.6.
sd_card
SDCard* Net10Module::sd_card( );
Description:
Returns the instance of the
SDCard
module that was instantiated together with the
Net10Module
Returns:
Pointer to the
SDCard
instance that was instantiated by the constructor of the
Net10Module
Required modules:
Ethernet Module
#define ISENSE_ENABLE_ETHERNET_SD_CARD_MODULE