| | |
| | | extern float Height; |
| | | void LoraReportPoll(void) |
| | | { |
| | | // delay_ms(100); |
| | | //#ifdef _USE_BAR |
| | | // GetPressAndHeight(); |
| | | // intheight = Height*100; |
| | | //#endif |
| | | // #ifdef _SMT_TEST |
| | | // printf("气压值:%d",intheight); |
| | | // #endif |
| | | // printf("LORA发送\r\n"); |
| | | if(sendcount++>0) |
| | | TagListUpdate(); |
| | | |
| | |
| | | checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum+ANCID_IDX); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*4],&checksum,2); |
| | | Radio.Send(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2); |
| | | //delay_ms(100); |
| | | // LED_TB_ON; |
| | | // bat_percent=Get_Battary(); |
| | | // #ifdef _USE_BAR_ |
| | | // //if(taglist_total_num>0) |
| | | // { |
| | | GetPressAndHeight(); |
| | | intheight = Height*100; |
| | | // } |
| | | //#endif |
| | | |
| | | // GetPressAndHeight(); |
| | | // intheight = Height*100; |
| | | |
| | | } |