《WiFi 嵌入式物联网开发全套实战》| 第 25 章 配网成功率低、干扰大、超时问题工程优化方案
2026/10/1 9:41:10
在编程过程中,高级布线起着关键作用。例如AMQueueImplP的相关布线如下:
AMQueueImplP . AMSend -> ActiveMessageC ; AMQueueImplP . AMPacket -> ActiveMessageC ; AMQueueImplP . Packet -> ActiveMessageC ;在AMSendQueueImplP中,发送数据包的逻辑如下:
nextPacket (); if ( current == QUEUE_EMPTY ) { return ; } else { message_t * msg; am_id_t id; am_addr_t addr ; uint8_t len ; msg = queue [ current ]; id = call AMPacket . getType ( msg ); addr = call AMPacket . getDestination ( msg ); len = call Packet . getLength ( msg ); if ( call AMSend . send [id ]( addr , msg , len) == SUCCESS ) { ..