mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
mesh: delete unused pts test code
This commit is contained in:
parent
b23e0293b4
commit
9a337a5665
@ -344,70 +344,6 @@ static void send_pts_network_messsage(const char * dst_type, uint16_t dst_addr,
|
||||
mesh_network_send(ttl, dst_addr, lower_transport_pdu_data, lower_transport_pdu_len);
|
||||
}
|
||||
|
||||
static void send_pts_network_messsage_unicast(int type){
|
||||
uint8_t lower_transport_pdu_data[16];
|
||||
uint16_t dst = 0x0001;
|
||||
uint8_t ttl = 0;
|
||||
switch (type){
|
||||
case 0:
|
||||
ttl = 0;
|
||||
break;
|
||||
case 1:
|
||||
ttl = PTS_DEFAULT_TTL;
|
||||
break;
|
||||
default:
|
||||
ttl = 0x7f;
|
||||
break;
|
||||
}
|
||||
printf("Unicast dst %04x, ttl %u\n", dst, ttl);
|
||||
int lower_transport_pdu_len = 16;
|
||||
memset(lower_transport_pdu_data, 0x55, lower_transport_pdu_len);
|
||||
mesh_network_send(ttl, dst, lower_transport_pdu_data, lower_transport_pdu_len);
|
||||
}
|
||||
|
||||
static void send_pts_network_messsage_virtual(int type){
|
||||
uint8_t lower_transport_pdu_data[16];
|
||||
uint16_t dst = pts_virtual_addresss->hash;
|
||||
uint8_t ttl = 0;
|
||||
switch (type){
|
||||
case 0:
|
||||
ttl = 0;
|
||||
break;
|
||||
case 1:
|
||||
ttl = PTS_DEFAULT_TTL;
|
||||
break;
|
||||
default:
|
||||
ttl = 0x7f;
|
||||
break;
|
||||
}
|
||||
printf("Virtual dst %04x, ttl %u\n", dst, ttl);
|
||||
int lower_transport_pdu_len = 16;
|
||||
memset(lower_transport_pdu_data, 0x55, lower_transport_pdu_len);
|
||||
mesh_network_send(ttl, dst, lower_transport_pdu_data, lower_transport_pdu_len);
|
||||
}
|
||||
|
||||
static void send_pts_network_messsage_group(int type){
|
||||
uint8_t lower_transport_pdu_data[16];
|
||||
uint16_t dst = 0xd000;
|
||||
uint8_t ttl = 0;
|
||||
switch (type){
|
||||
case 0:
|
||||
ttl = 0;
|
||||
break;
|
||||
case 1:
|
||||
ttl = PTS_DEFAULT_TTL;
|
||||
break;
|
||||
default:
|
||||
ttl = 0x7f;
|
||||
break;
|
||||
}
|
||||
printf("Virtual dst %04x, ttl %u\n", dst, ttl);
|
||||
int lower_transport_pdu_len = 16;
|
||||
memset(lower_transport_pdu_data, 0x55, lower_transport_pdu_len);
|
||||
mesh_network_send(ttl, dst, lower_transport_pdu_data, lower_transport_pdu_len);
|
||||
}
|
||||
|
||||
|
||||
static void send_pts_unsegmented_access_messsage(void){
|
||||
uint8_t access_pdu_data[16];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user