Microchip® Advanced Software Framework

main.h File Reference

MAIN configuration.

Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define IPV4_BYTE(val, index)   ((val >> (index * 8)) & 0xFF)
 Using IP address. More...
 
#define MAIN_HOST_NAME   "www.google.com"
 All SSL defines. More...
 
#define MAIN_HOST_PORT   443
 
#define MAIN_WLAN_AUTH   M2M_WIFI_SEC_WPA_PSK
 Security manner. More...
 
#define MAIN_WLAN_PSK   "12345678"
 Password for Destination SSID. More...
 
#define MAIN_WLAN_SSID   "DEMO_AP"
 Wi-Fi Settings. More...
 

Enumerations

enum  eSocketStatus {
  SocketInit = 0,
  SocketConnect,
  SocketWaiting,
  SocketComplete,
  SocketError
}
 

#define IPV4_BYTE (   val,
  index 
)    ((val >> (index * 8)) & 0xFF)

Using IP address.

Referenced by resolve_cb().

#define MAIN_HOST_NAME   "www.google.com"

All SSL defines.

Referenced by wifi_cb().

#define MAIN_HOST_PORT   443

Referenced by sslConnect().

#define MAIN_WLAN_AUTH   M2M_WIFI_SEC_WPA_PSK

Security manner.

Referenced by main(), and wifi_cb().

#define MAIN_WLAN_PSK   "12345678"

Password for Destination SSID.

Referenced by main(), and wifi_cb().

#define MAIN_WLAN_SSID   "DEMO_AP"

Wi-Fi Settings.

Destination SSID

Referenced by main(), and wifi_cb().

Enumerator
SocketInit 
SocketConnect 
SocketWaiting 
SocketComplete 
SocketError