3 Commits

Author SHA1 Message Date
jonny_l480
4731f9253e Cleanup: comments, structure, warnings
went trough all current files:
- remove old comments
- change structure / newlines

- main.cpp: outsource loglevel function
- http.cpp: FIX compiler warnings

	currentsensor.hpp
2023-08-22 11:16:37 +02:00
jonny_ji7
3b0b9f5b5b Add static ip for wifi client (10.0.0.66)
When connecting to wifi (currently BKA-network only) a static ip
10.0.0.66 is used.

TODO: define static ip for access-point mode
2022-06-18 11:36:26 +02:00
jonny_ji7
57de7e3e59 Create wifi.c/h: create AP or connect to Wifi
Create functions in wifi.c and wifi.h:
- an wifi accesspoint can be created
- connect to an existing wifi anf disconnect

Add code for testing to main.cpp:
repeatedly connects, disconnects and switches between AP and connecting
to BKA-network every run

New functions
//init components (run in main function once)
  void wifi_initNvs_initNetif();
//function to start an access point
  void wifi_init_ap(void);
//function to disable/deinit access point
  void wifi_deinit_ap(void);

//function to connect to existing wifi network
  void wifi_init_client(void);
//function to disable/deinit client
  void wifi_deinit_client(void);
2022-06-16 11:00:16 +02:00