blackmagic-esp32-s2/main/network.h

29 lines
458 B
C
Raw Normal View History

2021-11-22 11:24:16 +00:00
/**
* @file network.h
* @author Sergey Gavrilov (who.just.the.doctor@gmail.com)
* @version 1.0
* @date 2021-11-21
*
* Network API
*/
#pragma once
#include <stdbool.h>
2021-12-06 15:39:11 +00:00
#include "nvs-config.h"
2021-11-22 11:24:16 +00:00
/**
* Init network module
2021-12-06 15:39:11 +00:00
* @return WiFiMode
2021-11-22 11:24:16 +00:00
*/
2021-12-06 15:39:11 +00:00
WiFiMode network_init(void);
2021-11-22 11:24:16 +00:00
/**
* Returns current WIFI mode
2021-12-06 15:39:11 +00:00
* @return WiFiMode
2021-11-22 11:24:16 +00:00
*/
2021-12-06 15:39:11 +00:00
WiFiMode network_get_mode(void);
2021-11-30 05:27:56 +00:00
/**
* Get current IP address
* @return uint32_t
*/
uint32_t network_get_ip(void);