Commit 3ccea9e8 authored by 957dd's avatar 957dd

delet openfirefox.sh

parent 9050f13d
#!/bin/bash
#sudo wmctrl -c firefox
#sleep 2 pkill firefox
# 设置 DISPLAY 环境变量(确保 Firefox 能运行图形界面)--new-window--ignore-certificate-errors
export DISPLAY=:0
firefox "https://jywy.yd-ss.com?dev=controcar0005" &
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
......@@ -24,7 +24,8 @@ void *AppExit(void *arg)
unsigned char bufpwm1[3]={gtypeTemp,1,0};
unsigned char bufpwm2[3]={gtypeTemp,2,0};
unsigned char bufpwm3[3]={gtypeTemp,3,0};
unsigned char bufpwm4[3]={gtypeTemp,4,0};\
unsigned char bufpwm4[3]={gtypeTemp,4,0};
unsigned char bufpwm5[3]={gtypeTemp,5,15};
if(gtypeTemp==3)
{
gPwmCount=0;
......@@ -40,6 +41,7 @@ void *AppExit(void *arg)
serial_Write(bufpwm2);
serial_Write(bufpwm3);
serial_Write(bufpwm4);
serial_Write(bufpwm5);
}
}
......
......@@ -13,7 +13,7 @@
#define BROKER_ADDRESS "119.45.167.177"
#define BROKER_PORT 1883
#define TOPIC "controcar0005"
#define TOPIC "controcar0004"
#define USERNAME "admin" // 替换为你的用户名
#define PASSWORD "admin" // 替换为你的密码
......
......@@ -4,11 +4,9 @@
int opencamsh()
{
int camsh=system(SHELLFILE);
if(camsh==-1)
{
return -1;
}
setenv("DISPLAY", ":0", 1);//设置环境变量
system("sudo firefox --new-window https://jywy.yd-ss.com?dev=controcar0004 &");
printf("close cam\n");
}
......
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