Thermometer connected to internet

Dependencies:   BME280 EthernetInterface FXOS8700Q HTTPClient-wolfSSL NTPClient NetworkAPI OAuth4Tw TSL2561_I2C eCompass_FPU_Lib mbed-rtos mbed wolfSSL

Fork of TCP_Server_Example by Roy van Dam

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EnvServer.h Source File

EnvServer.h

00001 #ifndef ENV_SERVER_H
00002 #define ENV_SERVER_H
00003 
00004 #include "mbed.h"
00005 
00006 #include "NetworkAPI/buffer.hpp"
00007 #include "NetworkAPI/select.hpp"
00008 #include "NetworkAPI/ip/address.hpp"
00009 #include "NetworkAPI/tcp/socket.hpp"
00010 using namespace network;
00011 
00012 #define MAX_CLIENTS 2
00013 #define WAIT_PORT 12345
00014 
00015 #define TEMP_CMD "TMP"
00016 #define HUMIDITY_CMD "HMD"
00017 #define PRESSURE_CMD "PRS"
00018 #define ILLUM_CMD "ILM"
00019 
00020 extern Select select;
00021 extern tcp::Socket server;
00022 extern tcp::Socket client[MAX_CLIENTS];
00023 extern tcp::Socket *socket;
00024 
00025 void EnvServer(void const *arg);
00026 
00027 
00028 #endif
00029 
00030