Microchip® Advanced Software Framework

trans_service_app.h File Reference

BLE Transparent Service Application Declarations.

Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "at_ble_api.h"

Macros

#define APP_TX_BUF_SIZE   (150)
 Application maximum transmit buffer size. More...
 
#define AUTH_CREDENTIALS   { M2M_802_1X_USR_NAME, M2M_802_1X_PWD }
 
#define BACKSPACE_BUTTON_PRESS   (8)
 Entered backspace button. More...
 
#define DEFAULT_AUTH   M2M_WIFI_SEC_WPA_PSK
 
#define DEFAULT_KEY   "12345678"
 
#define DEFAULT_SSID   "DEMO_AP"
 
#define ENTER_BUTTON_PRESS   (13)
 Enter button press to send data. More...
 
#define KEY_PAD_DEBOUNCE_TIME   (200)
 Keypad debounce time. More...
 
#define M2M_DEVICE_NAME   "WINC3400_00:00"
 
#define MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}
 
#define SPACE_BAR   (32)
 Space bar. More...
 
#define WEP_CONN_PARAM   { WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY}
 
#define WEP_KEY   "1234567890"
 
#define WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
 
#define WEP_KEY_SIZE   sizeof(WEP_KEY)
 

Functions

void ble_trans_service_init (void)
 
void ble_trans_service_process_event (at_ble_events_t event, at_ble_event_parameter_t *params)
 
void ble_trans_service_send_buf (void)
 
at_ble_status_t ble_trans_update_value_on_btnpress (uint8_t *trans_tx_value, uint8_t len)
 

#define APP_TX_BUF_SIZE   (150)

Application maximum transmit buffer size.

Referenced by ble_trans_service_send_buf().

#define AUTH_CREDENTIALS   { M2M_802_1X_USR_NAME, M2M_802_1X_PWD }
#define BACKSPACE_BUTTON_PRESS   (8)

Entered backspace button.

Referenced by ble_trans_service_send_buf().

#define DEFAULT_AUTH   M2M_WIFI_SEC_WPA_PSK
#define DEFAULT_KEY   "12345678"
#define DEFAULT_SSID   "DEMO_AP"
#define ENTER_BUTTON_PRESS   (13)

Enter button press to send data.

Referenced by ble_trans_service_send_buf().

#define KEY_PAD_DEBOUNCE_TIME   (200)

Keypad debounce time.

#define M2M_DEVICE_NAME   "WINC3400_00:00"

Referenced by app_wifi_init().

#define MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}

Referenced by app_wifi_init().

#define SPACE_BAR   (32)

Space bar.

Referenced by ble_trans_service_send_buf().

#define WEP_CONN_PARAM   { WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY}
#define WEP_KEY   "1234567890"
#define WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
#define WEP_KEY_SIZE   sizeof(WEP_KEY)

void ble_trans_service_init ( void  )
void ble_trans_service_process_event ( at_ble_events_t  event,
at_ble_event_parameter_t params 
)
at_ble_status_t ble_trans_update_value_on_btnpress ( uint8_t *  trans_tx_value,
uint8_t  len 
)