Add support to read UUID from bridge-r0ket
This commit is contained in:
parent
7b0c755c87
commit
2b5341713b
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue