multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

network.h

Committer:
vsoltan
Date:
2020-11-29
Revision:
37:8a0fc62a0512
Parent:
36:46bb54b669bc

File content as of revision 37:8a0fc62a0512:


#ifndef NETWORK_H
#define NETWORK_H

#include "EthernetInterface.h"
#include "mbed.h" 

#define AWS_IP  "3.128.153.185"
#define PORT    3030

#define CONNECTION_REQ  "{\"type\": \"connected\"}"
#define LOBBY_HASH      "jaredyeagersflipflop"

void initEthernet(EthernetInterface *eth, UDPSocket *sock, Endpoint *nist);
void cleanupEthernet(EthernetInterface *eth, UDPSocket *sock); 

#endif // NETWORK_H