20 lines
686 B
C
20 lines
686 B
C
#ifndef _APP_WIFI_H_
|
|
#define _APP_WIFI_H_
|
|
#include <rtthread.h>
|
|
#include <finsh.h>
|
|
#include "common.h"
|
|
#include "param_config.h"
|
|
|
|
void mqtt_upload_temperature(uint16_t t_value);
|
|
void connnect_wifi(char *oob_ssid,char *connect_key);
|
|
void wifi_read_info(char *ssid, size_t ssid_len, char *password, size_t pass_len,
|
|
char *bssid, size_t bssid_len, char *channel, size_t channel_len, char *security, size_t security_len);
|
|
void mac_string_to_binary(const char *mac_str, uint8_t *mac_bin);
|
|
void fast_connect_wifi();
|
|
void wifi_init();
|
|
void poka_client_username(time_t now);
|
|
void poka_client_password();
|
|
void mqtt_upload_boxbat(uint16_t b_value);
|
|
void mqtt_upload_bat(uint16_t b_value);
|
|
|
|
#endif |