Permalink
Browse files

Add support to read UUID from bridge-r0ket

  • Loading branch information...
1 parent 7b0c755 commit 2b5341713b00f013089b4e6cdb4caa177266c835 @Sec42 Sec42 committed Apr 15, 2012
Showing with 10 additions and 1 deletion.
  1. +2 −1 firmware/BRIDGE-PROTOCOL
  2. +8 −0 firmware/applications/bridge.c
View
@@ -14,5 +14,6 @@ h->r:\5<CHANNEL>\0
r->h: \2\0
h->r:\6<MACLEN>\0
r->h: \2\0
-
+h->r:\7\0
+r->h: \7<UUID>\0
@@ -99,6 +99,14 @@ void main_bridge(void)
config.maclen[0]=serialmsg_message[0];
nrf_config_set(&config);
break;
+ case '7':
+ puts("\\7");
+ char s[sizeof(uint32_t)+1];
+ *((uint32_t*)s) =GetUUID32();
+ s[sizeof(uint32_t)]=0;
+ puts(s);
+ puts("\\0");
+ break;
};
puts("\\2\\0");
}

0 comments on commit 2b53417

Please sign in to comment.