Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SpwfInterface_NSAPI_Tests HelloWorld_IDW01M1
Fork of X_NUCLEO_IDW01M1 by
wifi_const.h
00001 /** 00002 ****************************************************************************** 00003 * @file wifi_const.h 00004 * @author Central LAB 00005 * @version V2.0.0 00006 * @date 10-February-2016 00007 * @brief Describes the constants and defines in X-CUBE-WIFI1 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00012 * 00013 * Redistribution and use in source and binary forms, with or without modification, 00014 * are permitted provided that the following conditions are met: 00015 * 1. Redistributions of source code must retain the above copyright notice, 00016 * this list of conditions and the following disclaimer. 00017 * 2. Redistributions in binary form must reproduce the above copyright notice, 00018 * this list of conditions and the following disclaimer in the documentation 00019 * and/or other materials provided with the distribution. 00020 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00021 * may be used to endorse or promote products derived from this software 00022 * without specific prior written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00027 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00028 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 ****************************************************************************** 00036 */ 00037 00038 /** @defgroup NUCLEO_WIFI_INTERFACE_Private_Defines 00039 * @{ 00040 */ 00041 00042 #define EPOCH_TIME 1453727657//Human time (GMT): Mon, 25 Jan 2016 13:14:17 GMT 00043 #define EXTI_CONF_TIMER 1900 //millisec 00044 #define PROCESS_WIFI_TIMER 1 00045 #define SLEEP_RESUME_PREVENT 2000 00046 #define RINGBUF_SIZE 2048//1024//3072//2048 00047 #define MAX_BUFFER_GLOBAL 512 00048 #define MAX_PREFETCH_BUFFER 20 00049 #define MAX_WIFI_SCAN_NETWORK 256 00050 #define RxBufferSize 64 00051 #define AT_RESP_LEN_OK 6 //\r\nOK\r\n 00052 #define AT_RESP_LEN_GPIOR 21//GPIO n = 0,in\r\n\r\nOK\r\n 00053 #define AT_RESP_HELP_TEXT_LEN 512 00054 #define AT_ATTENTION "AT\r" 00055 #define AT_WIFI_ENABLE "AT+S.WIFI=%d\r" 00056 #define AT_GET_CONFIGURATION_VALUE "AT+S.GCFG=%s\r" 00057 #define AT_SET_CONFIGURATION_VALUE "AT+S.SCFG=%s,%d\r" 00058 #define AT_SET_CONFIGURATION_ADDRESS "AT+S.SCFG=%s,%s\r" 00059 //#define AT_GET_SSID "AT&F\r" 00060 #define AT_SET_SSID "AT+S.SSIDTXT=%s\r" 00061 #define AT_SET_SEC_KEY "AT+S.SCFG=wifi_wpa_psk_text,%s\r" 00062 #define AT_RESTORE_DEFAULT_SETTING "AT&F\r" 00063 #define AT_SAVE_CURRENT_SETTING "AT&W\r" 00064 #define AT_SET_POWER_STATE "AT+CFUN=%d\r" 00065 #define AT_HELP_TEXT "AT+S.HELP\r" 00066 #define AT_RESET_MSG "\r\n+WIND:2:Reset\r\n" 00067 00068 #define UNDEFINE_LENGTH 0xFFFF 00069 #define AT_WiFi_SCAN "AT+S.SCAN\r" 00070 #define AT_SOCKET_OPEN "AT+S.SOCKON=%s,%d,%s,ind\r" 00071 #define AT_SOCKET_WRITE "AT+S.SOCKW=%d,%d\r" 00072 #define AT_SOCKET_READ "AT+S.SOCKR=%d,%d\r" 00073 #define AT_SOCKET_CLOSE "AT+S.SOCKC=%d\r" 00074 #define AT_SERVER_SOCKET_OPEN "AT+S.SOCKD=%d,%s,ind\r" //with indication option 00075 #define AT_SERVER_SOCKET_CLOSE "AT+S.SOCKD=0\r" 00076 #define AT_QUERY_PENDING_DATA "AT+S.SOCKQ=%d\r" 00077 #define AT_DISPLAY_FILE_NAME "AT+S.FSL\r" 00078 #define AT_DISPLAY_FILE_CONTENT "AT+S.FSP=/%s\r" 00079 #define AT_CREATE_NEW_HTML_FILE "AT+S.FSC=/%s,%d\r" 00080 #define AT_APPEND_FILE "AT+S.FSA=/%s,%d\r" 00081 #define AT_DELETE_FILE "AT+S.FSD=/%s\r" 00082 #define AT_DOWNLOAD_IMAGE_FILE "AT+S.HTTPDFSUPDATE=%s,/%s,%d\r" 00083 #define AT_ERASE_FLASH_MEMORY "AT+S.HTTPDFSERASE\r" 00084 00085 #define AT_CMD_TO_DATA_MODE "AT+S.\r" 00086 #define AT_DATA_TO_CMD_MODE "at+s." /* NOT \r */ 00087 #define AT_HTTPPOST_REQUEST "AT+S.HTTPPOST=%s\r" 00088 #define AT_HTTPD "AT+S.HTTPD=%d\r" 00089 #define AT_GET_STATUS_VALUE "AT+S.STS=%s\r" 00090 00091 /************Wi-Fi Config Variables**************/ 00092 00093 #define BLINK_LED "blink_led" 00094 #define LOCALECHO1 "localecho1" 00095 #define CONSOLE1_HWFC "console1_hwfc" 00096 #define CONSOLE1_SPEED "console1_speed" 00097 #define WIFI_PRIV_MODE "wifi_priv_mode" 00098 #define IP_USE_DHCP_SERVER "ip_use_dhcp" 00099 #define IP_USE_HTTPD "ip_use_httpd" 00100 #define WIFI_MODE "wifi_mode" 00101 #define WIFI_WPA_SECURITY "wifi_wpa_psk_text" 00102 #define WIFI_CHANNEL_NUMBER "wifi_channelnum" 00103 #define WIFI_IP_ADDRESS "ip_ipaddr" 00104 #define WIFI_IP_DEFAULT_GATEWAY "ip_gw" 00105 #define WIFI_IP_DNS "ip_dns" 00106 #define WIFI_IP_NETMASK "ip_netmask" 00107 #define WIFI_IP_HOSTNAME "ip_hostname" 00108 #define WIFI_IP_APDOMAINNAME "ip_apdomainname" 00109 #define WIFI_IP_APREDIRECT "ip_apredirect" 00110 #define WIFI_IP_HTTP_TIMEOUT "ip_http_get_recv_timeout" 00111 #define WIFI_IP_DHCP_TIMEOUT "ip_dhcp_timeout" 00112 00113 #define WIFI_SLEEP_ENABLED "sleep_enabled" 00114 #define WIFI_HT_MODE "wifi_ht_mode" 00115 #define WIFI_OPR_RATE_MASK "wifi_opr_rate_mask" 00116 #define WIFI_POWERSAVE "wifi_powersave" 00117 #define WIFI_OPERATIONAL_MODE "wifi_operational_mode" 00118 #define WIFI_LISTEN_INTERVAL "wifi_listen_interval" 00119 #define WIFI_BEACON_WAKEUP "wifi_beacon_wakeup" 00120 #define WIFI_STANDBY_ENABLED "standby_enabled" 00121 #define WIFI_STANDBY_TIME "standby_time" 00122 #define WIFI_TX_POWER "wifi_tx_power" 00123 #define WIFI_IBSS_IP_ADDR "192.168.2.100" 00124 #define WIFI_IBSS_DEFAULT_GATEWAY "192.168.2.1" 00125 #define WIFI_IBSS_IP_DNS_ADDR "192.168.2.1" 00126 #define WIFI_IBSS_IP_MASK "255.255.255.0" 00127 #define WIFI_IP_USE_DHCP 0 00128 00129 /** 00130 * @} 00131 */
Generated on Tue Jul 12 2022 16:20:36 by
1.7.2

X-NUCLEO-IDW01M1 Wi-Fi expansion board