This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdint> | |
#include <sstream> | |
#include <Arduino.h> | |
#include <unity.h> | |
/* #include "SerializablePOD.h" | |
#include "TinyString.h" */ | |
#include "WiFiDTO.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" void app_main() | |
{ | |
// Initialize arduino as a component | |
initArduino(); | |
// Initialize NVS. | |
auto nvs_err = nvs::begin(); | |
wifi::DTOConfig wifi_params; | |
wifi::DTOConfig wifi_params2; | |
setDefaultWiFiParams(wifi_params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file main.cpp | |
* @author Locha Mesh Developers ([email protected]) | |
* @brief | |
* @version 0.1 | |
* @date 2019-09-11 | |
* | |
* @copyright Copyright (c) 2019 | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "TcpServer.h" | |
#include "WebSocketServer.h" | |
#include <errno.h> | |
#include <string.h> | |
namespace server { | |
const int DELAY = 1000 / portTICK_PERIOD_MS; // 1 second | |
TcpServer::TcpServer() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "WebSocketServer.h" | |
#include <errno.h> | |
#include <string.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/queue.h" | |
#include "freertos/task.h" | |
namespace server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TCPSERVER_H | |
#define TCPSERVER_H | |
#include "Task.h" | |
#include "esp_log.h" | |
#include "lwip/api.h" | |
#include <cstdint> | |
namespace server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* GPIO.cpp | |
* | |
* Created on: Feb 28, 2017 | |
* Author: kolban | |
*/ | |
#include "GPIO.h" | |
#include <driver/gpio.h> | |
#include "sdkconfig.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* GPIO.h | |
* | |
* Created on: Feb 28, 2017 | |
* Author: kolban | |
*/ | |
#ifndef GPIO_H | |
#define GPIO_H | |
#include <driver/gpio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013 Freie Universität Berlin. | |
* | |
* This file is subject to the terms and conditions of the GNU Lesser | |
* General Public License v2.1. See the file LICENSE in the top level | |
* directory for more details. | |
*/ | |
/** | |
* @defgroup net_if Network interfaces |
OlderNewer