Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Added hostname configuration to WLAN module #100

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update modwlan.h
  • Loading branch information
illysky authored Nov 12, 2017
commit 2c138eeb3160f7aa6a5430aa19fdc5c3d3227863
3 changes: 2 additions & 1 deletion esp32/mods/modwlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ typedef struct _wlan_obj_t {
uint8_t ssid[(MODWLAN_SSID_LEN_MAX + 1)];
uint8_t key[65];
uint8_t mac[6];
uint8_t hostname[16];

// the sssid (or name) and mac of the other device
uint8_t ssid_o[33];
Expand All @@ -74,7 +75,7 @@ extern wlan_obj_t wlan_obj;
DECLARE PUBLIC FUNCTIONS
******************************************************************************/
extern void wlan_pre_init (void);
extern void wlan_setup (int32_t mode, const char *ssid, uint32_t auth, const char *key, uint32_t channel, uint32_t antenna, bool add_mac);
extern void wlan_setup (int32_t mode, const char *ssid, uint32_t auth, const char *key, uint32_t channel, uint32_t antenna, bool add_mac, char *hostname);
extern void wlan_update(void);
extern void wlan_get_mac (uint8_t *macAddress);
extern void wlan_get_ip (uint32_t *ip);
Expand Down