Commit 3384b318 authored by 957dd's avatar 957dd

sh bug update but have few bug

parent 143f6dc9
#!/bin/bash
# 设置 DISPLAY 环境变量(确保 Firefox 能运行图形界面)
export DISPLAY=:0
pkill firefox
# 设置 DISPLAY 环境变量(确保 Firefox 能运行图形界面)
export DISPLAY=:0
firefox --new-window "https://8.129.3.163/index" --ignore-certificate-errors
\ No newline at end of file
sudo firefox --new-window "https://8.129.3.163/index" --ignore-certificate-errors &
\ No newline at end of file
This diff is collapsed.
No preview for this file type
......@@ -60,6 +60,7 @@ void *Mqttbeat(void *arg)
void *serial_usart2(void *arg)
{
printf("serial_usart 2 start\n");
serial_Receive_2();
......@@ -70,7 +71,7 @@ int main(int argc, char *argv[]) {
gStart=time(NULL);//开始时间戳
opencamsh();
serial_Init();//串口初始化
......@@ -81,6 +82,8 @@ int main(int argc, char *argv[]) {
ipaddr();//获取ip
mqtt_wirte();//mqtt心跳首次发送
opencamsh();
thread_start(serial_usart1,AppExit,Mqttbeat,serial_usart2);
mqtt_cycle(mosq);
......
......@@ -12,7 +12,7 @@
#define BROKER_ADDRESS "119.45.167.177"
#define BROKER_PORT 1883
#define CLIENT_ID "feichirensheng/control/car0001"
#define CLIENT_ID "feichirensheng/carorship"
#define TOPIC "controlcar0001"
#define USERNAME "admin" // 替换为你的用户名
#define PASSWORD "admin" // 替换为你的密码
......
......@@ -10,5 +10,5 @@ int opencamsh()
return -1;
}
printf("open cam\n");
return 0;
}
......@@ -2,8 +2,7 @@
#define __opensh_H__
#define SHELLFILE "/home/kickpi/car/master/camshell/cam.sh"
#define SHELLFILE "/home/kickpi/car/master/cam.sh"
int opencamsh();
#endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment