Add support to read UUID from bridge-r0ket

This commit is contained in:
Stefan `Sec` Zehl 2012-04-15 22:58:04 +02:00
parent 7b0c755c87
commit 2b5341713b
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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");
}