Skip to content

Instantly share code, notes, and snippets.

View gustavosinbandera1's full-sized avatar
💭
Working hard

Gustavo Grisales gustavosinbandera1

💭
Working hard
  • Colombia
View GitHub Profile
#include <cstdint>
#include <sstream>
#include <Arduino.h>
#include <unity.h>
/* #include "SerializablePOD.h"
#include "TinyString.h" */
#include "WiFiDTO.h"
@gustavosinbandera1
gustavosinbandera1 / mainWorking.cpp
Created November 14, 2019 02:11
el main trabaja bien con este code
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);
/**
* @file main.cpp
* @author Locha Mesh Developers ([email protected])
* @brief
* @version 0.1
* @date 2019-09-11
*
* @copyright Copyright (c) 2019
*
*/
#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()
{
#include "WebSocketServer.h"
#include <errno.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "freertos/task.h"
namespace server {
#ifndef TCPSERVER_H
#define TCPSERVER_H
#include "Task.h"
#include "esp_log.h"
#include "lwip/api.h"
#include <cstdint>
namespace server {
/*
* GPIO.cpp
*
* Created on: Feb 28, 2017
* Author: kolban
*/
#include "GPIO.h"
#include <driver/gpio.h>
#include "sdkconfig.h"
/*
* GPIO.h
*
* Created on: Feb 28, 2017
* Author: kolban
*/
#ifndef GPIO_H
#define GPIO_H
#include <driver/gpio.h>
#include "UserButton.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include <esp_log.h>
namespace hmi {
static xQueueHandle gpio_evt_queue = nullptr;
static void IRAM_ATTR interruptIsrHandler(void* arg)
/*
* 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