summaryrefslogtreecommitdiffstats
path: root/arduino/src/config.h
diff options
context:
space:
mode:
authorSergiusz 'q3k' Bazański <q3k@q3k.org>2015-03-05 00:44:42 +0100
committerSergiusz 'q3k' Bazański <q3k@q3k.org>2015-03-05 00:44:42 +0100
commit180220f19bc951f9cd6b2c4280321e2ede52a661 (patch)
tree29cebafb1c145a9fc3c9bf7ec0139fac32c8b1a2 /arduino/src/config.h
parentfbca8b027a3d2fe9440ae5ae6cf97a7a606e3afe (diff)
downloaddoorman-180220f19bc951f9cd6b2c4280321e2ede52a661.tar.gz
doorman-180220f19bc951f9cd6b2c4280321e2ede52a661.tar.bz2
doorman-180220f19bc951f9cd6b2c4280321e2ede52a661.tar.xz
doorman-180220f19bc951f9cd6b2c4280321e2ede52a661.zip
Add MAC'd PC comms
Diffstat (limited to 'arduino/src/config.h')
-rw-r--r--arduino/src/config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arduino/src/config.h b/arduino/src/config.h
index 126e51f..83597cf 100644
--- a/arduino/src/config.h
+++ b/arduino/src/config.h
@@ -21,7 +21,12 @@
//#define DEBUG_KEYPAD_SIM 1
/** Max length of message from rfid reader. */
#define RF_MAX_BYTES (16)
+/** Length of MAC **/
+#define PC_MAC_SIZE (32)
/** Max length of message from or to PC. */
-#define PC_MAX_BYTES (2+1+4+1+EMEM_HASH_SIZE*2+1+8+1)
+#define PC_MAX_BYTES (2+1+4+1+EMEM_HASH_SIZE*2+1+PC_MAC_SIZE*2+1)
/** Period for quering rfid reader. */
#define RF_PERIOD_MS (500)
+
+/** PC Communications MAC secret **/
+#define PC_MAC_SECRET ("hackme")