View Dockerfile
# By default, Docker containers run as the root user. This is bad because:
# 1) You're more likely to modify up settings that you shouldn't be
# 2) If an attacker gets access to your container - well, that's bad if they're root.
# Here's how you can run change a Docker container to run as a non-root user
## CREATE APP USER ##
# Create the home directory for the new app user.
RUN mkdir -p /home/app
View RTOS_AUDIO_ISR_2.ino
static void vReceiverTask( void *pvParameters );
#define ESP_INTR_FLAG_DEFAULT 0
#include "AudioGeneratorWAV.h"
#include "AudioOutputI2S.h"
#include "AudioFileSourceSPIFFS.h"
#include "AudioOutputMixer.h"
#include "SPIFFS.h"
#include "FS.h"
View RTOS_AUDIO_ISR_1.ino
static void vReceiverTask( void *pvParameters );
#define ESP_INTR_FLAG_DEFAULT 0
#include "AudioGeneratorWAV.h"
#include "AudioOutputI2S.h"
#include "AudioFileSourceSPIFFS.h"
#include "SPIFFS.h"
#include "FS.h"
#include <WiFi.h>
View RTOS_gpio_ISR_HANDLER
static void vReceiverTask( void *pvParameters );
#define ESP_INTR_FLAG_DEFAULT 0
void setup() {
Serial.begin(115200);
}
static char tag[] = "test_intr";
static QueueHandle_t q1;
View RTOS_struct_task.ino
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (version 2) as published by the
View MultiAudioMixer.ino
#include "AudioGeneratorWAV.h"
#include "AudioOutputI2S.h"
#include "AudioFileSourceSPIFFS.h"
#include "AudioOutputMixer.h"
#include <WiFi.h>
#define numChannels 2
AudioOutputMixerStub *stub[numChannels];
AudioOutputMixer *mixer;
AudioGeneratorWAV *wav[numChannels];
View boost_tcp_client.cpp
/*
g++ main.cpp -lboost_system -lboost_thread -lpthread -o main
*/
#include <boost/asio.hpp>
#include <boost/array.hpp>
#include <iostream>
void send_something(std::string host, int port, std::string message)