Raspberry pi and Attitude adjustment

My version of the companion softwarehas been updated to 0.0.26.
The result is still the same.It can’t detect the heartbeat.
I think my development environment is ok,because the the program can run.
I correctly connected the hardware and i can visit http://192.168.2.2:2770.
When i use QGC,i can see attitude.
When i run the code,I turn off QGC.
So is there anything else I didn’t pay attention to?
The following is a screenshot of the program and web page.