API  2.3.0
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_carriots_cellular_2g_t Struct Reference

Cellular 2g interface notification stucture. More...

#include <tsmart_carriots.h>

Data Fields

tsmart_carriots_notif_type_t notif_type
 
tsmart_carriots_cellular_2g_notif_t code
 

Detailed Description

Cellular 2g interface notification stucture.

Note
This structure is only used when the cellular 2g interface is in use.

Field Documentation

This value gives information about what kind of action is needed doing, it should be:

  • TSMART_CARRIOTS_CELLULAR_2G_NETWORK_FAILURE - GPRS network failure, it's necessary to attach to the GPRS network again (uses the TSMART_CARRIOTS_CELLULAR_2G_NetworkAttachment() function). The IP address can change. Then if the application works with dynamic IP, it's necessary to register the new IP address in Carriots middleware

  • TSMART_CARRIOTS_CELLULAR_2G_RESET_MODULE - An exception has happend, it's necessary to do a reset of the cellular 2G interface
Examples:
carriots_2g.c.

Notification type