|
|
@ -70,17 +70,17 @@ |
|
|
|
/***************Ethernet ENC28J60***************/ |
|
|
|
|
|
|
|
//Mac must be unique for each sensor
|
|
|
|
byte mac[] = { 0xD3, 0x5D, 0xBE, 0xEF, 0xEE, 0x50 }; |
|
|
|
byte mac[] = { 0xD3, 0x5D, 0xBE, 0xEF, 0xEE, 0x54 }; |
|
|
|
//Static IP of Arduino
|
|
|
|
byte ip[] = { 192, 168, 78, 50 }; |
|
|
|
byte ip[] = { 192, 168, 78, 54 }; |
|
|
|
//IP of ZM Server
|
|
|
|
byte server[] = { 192, 168, 78, 123 }; |
|
|
|
//ZM server IP to put in requests.
|
|
|
|
String host="192.168.78.123"; |
|
|
|
|
|
|
|
char* monnum = "12"; //monitor number
|
|
|
|
char* monnum = "2"; //monitor number
|
|
|
|
|
|
|
|
char* LOCATIONOFSENSOR = "Bay 4 - Tool Room"; |
|
|
|
char* LOCATIONOFSENSOR = "Bay 3"; |
|
|
|
|
|
|
|
#define ZMTRIGGERPORT 6802
|
|
|
|
#define LISTENPORT 80 // (port 80 is default for HTTP)
|
|
|
@ -92,7 +92,7 @@ char* LOCATIONOFSENSOR = "Bay 4 - Tool Room"; |
|
|
|
|
|
|
|
|
|
|
|
//Digital
|
|
|
|
#define MODECTPIN 2
|
|
|
|
#define MODECTPIN 4
|
|
|
|
#define SPEAKERPIN 6
|
|
|
|
#define LEDPIN 9
|
|
|
|
|
|
|
|