* wifi_direct_discovery_state_e discovery_state,
* const char *mac_address,
* void *user_data)
- *{
+ * {
* switch (discovery_state) {
* case WIFI_DIRECT_DISCOVERY_FOUND:
* printf("Peer found\n");
* default:
* break;
* }
- *}
+ * }
*
* void function(void)
* {
* wifi_direct_connection_state_e connection_state,
* const char *mac_address,
* void *user_data)
- *{
+ * {
* char *ip;
* bool owner;
* int wps_mode;
* default:
* break;
* }
- *}
+ * }
*
* void function(void)
* {
* const char *ip_address,
* const char *interface_address,
* void *user_data);
- *{
+ * {
* printf("IP Assigned to the client device\n");
*
* printf("mac=%s\n", mac_address);
* printf("ip=%s\n", ip_address);
* printf("iface=%s\n", interface_address);
- *}
+ * }
*
* void function(void)
* {
* void *response_data,
* const char *mac_address,
* void *user_data);
- *{
+ * {
* switch (discovery_state) {
* case WIFI_DIRECT_SERVICE_DISCOVERY_STARTED:
* printf("Discovery Started\n");
* default:
* break;
* }
- *}
+ * }
*
* void function(void)
* {
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
* g_source_remove(connection_timeout);
* break;
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* void callback(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
* break;
*
* printf("Disconnected\n"); // disconnect notification
* break;
* }
- *}
+ * }
*
* int function(void)
* {
* void callback_1(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
* break;
*
* printf("Disconnected mac=%s\n", mac_address); // disconnect notification
* break;
* }
- *}
+ * }
*
* int function(char *mac)
* {
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
*
* function();
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
*
* function();
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
*
* function();
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
*
* function();
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* wifi_direct_connection_state_e connection_state,
* const char *mac_address,
* void *user_data)
- *{
+ * {
* char *ip;
* bool owner;
* int wps_mode;
* default:
* break;
* }
- *}
+ * }
*
* int main()
* {
* wifi_direct_connection_state_e connection_state,
* const char *mac_address,
* void *user_data)
- *{
+ * {
* char *ip;
* bool owner;
* int wps_mode;
* default:
* break;
* }
- *}
+ * }
*
* int main()
* {
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* break;
*
- * case WIFI_DIRECT_CONNECTON_RSP:
+ * case WIFI_DIRECT_CONNECTION_RSP:
* printf("Connected\n");
* g_source_remove(connection_timeout);
* break;
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,
* void callback_2(int error_code,
* wifi_direct_connection_state_e state,
* const char *mac, void *user_data)
- *{
+ * {
* switch (state) {
* case WIFI_DIRECT_CONNECTION_IN_PROGRESS:
* printf("Connection in progress\n");
* printf("Disconnected\n");
* break;
* }
- *}
+ * }
*
* void callback_1(int error_code,
* wifi_direct_discovery_state_e discovery_state,