113 } ML2; |
113 } ML2; |
114 |
114 |
115 |
115 |
116 |
116 |
117 /** |
117 /** |
118 * @brief Records with WiFi stations we have succesfully connected. |
|
119 */ |
|
120 typedef struct { |
|
121 char SSID[32]; ///< Station SSID |
|
122 char Password[64]; ///< Station password |
|
123 bool xhide; ///< Hide from AP scan. |
|
124 } wifiStation_t; ///< Station record. |
|
125 |
|
126 |
|
127 /** |
|
128 * @brief Add a new station record. |
|
129 * @param SSID The SSID |
|
130 * @param Password The password for this SSID |
|
131 * @return The record number, or -1 if error. |
|
132 */ |
|
133 int add_station(uint8_t *SSID, uint8_t *Password); |
|
134 |
|
135 /** |
|
136 * @brief Read station info record. |
|
137 * @param SSID Search for the SSID and load the record if found. |
|
138 * @return Return -1 if not found, else the record number and the wifiStation record is filled. |
|
139 */ |
|
140 int read_station(uint8_t *SSID); |
|
141 |
|
142 /** |
|
143 * @brief Remove station record. |
|
144 * @param SSID The SSID to remove. |
|
145 */ |
|
146 void remove_station(uint8_t *SSID); |
|
147 |
|
148 |
|
149 |
|
150 /** |
|
151 * @brief Records that describes the carbonation units, |
118 * @brief Records that describes the carbonation units, |
152 */ |
119 */ |
153 typedef struct { |
120 typedef struct { |
154 char uuid[37]; ///< Unit uuid |
121 char uuid[37]; ///< Unit uuid |
155 char alias[33]; ///< Alias name 'unit1' |
122 char alias[33]; ///< Alias name 'unit1' |