| | |
| | | extern float Height; |
| | | void LoraReportPoll(void) |
| | | { |
| | | |
| | | // delay_ms(100); |
| | | #ifdef _USE_BAR |
| | | GetPressAndHeight(); |
| | | intheight = Height*100; |
| | | #endif |
| | | #ifdef _SMT_TEST |
| | | printf("气压值:%d",intheight); |
| | | #endif |
| | | |
| | | 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); |
| | | GetPressAndHeight(); |
| | | intheight = Height*100; |
| | | |
| | | LED_TB_ON; |
| | | printf("气压值:%d",intheight); |
| | | bat_percent=Get_Battary(); |
| | | |
| | | } |