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

EnvServer.h

Committer:
zeus3110
Date:
2015-09-27
Revision:
12:12369ee344ab

File content as of revision 12:12369ee344ab:

#ifndef ENV_SERVER_H
#define ENV_SERVER_H

#include "mbed.h"

#include "NetworkAPI/buffer.hpp"
#include "NetworkAPI/select.hpp"
#include "NetworkAPI/ip/address.hpp"
#include "NetworkAPI/tcp/socket.hpp"
using namespace network;

#define MAX_CLIENTS 2
#define WAIT_PORT 12345

#define TEMP_CMD "TMP"
#define HUMIDITY_CMD "HMD"
#define PRESSURE_CMD "PRS"
#define ILLUM_CMD "ILM"

extern Select select;
extern tcp::Socket server;
extern tcp::Socket client[MAX_CLIENTS];
extern tcp::Socket *socket;

void EnvServer(void const *arg);


#endif