|
本帖最后由 syant 于 2025-3-14 11:41 编辑
检索JP项目的代码:
>>>>d:\jp20250228\htdocs20250228\dcenter\modules\machinemq\mod.index.php<<<<<
$mqttIP = $_SERVER['SERVER_NAME'];
$smarty->assign('mqttIP', $mqttIP);
$html .= "<div class='{$x} mqtt'>" .
>>>>d:\jp20250228\htdocs20250228\dcenter\modules\machinemq\mod.myshow.php<<<<<
$mqttIP = $_SERVER['SERVER_NAME'];
$smarty->assign('mqttIP', $mqttIP);
$html .= "<div class='{$x} mqtt'>" .
>>>>d:\jp20250228\htdocs20250228\dcenter\modules\qmsshou\mod.shoujob.php<<<<<
//$this->domqttjob($row["MC"],1);
function domqttjob($machine,$data){
//mqtt data
$this->app->prepare_mqtt();
$mqttdata = array(
$this->app->mqtt->publish("MACHINE/1-4/{$machine}", json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
$this->domqttjob($ma,1);
$this->domqttjob($ma,2);
>>>>d:\jp20250228\htdocs20250228\dcenter\templates\machinemq\index.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
<link href="../css/kbmqtt.css" rel="stylesheet" type="text/css" />
<script src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"></script>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
var newDiv = "<div class='" + Classname + " mqtt'>" +
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\dcenter\templates\machinemq\myshow.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
<script src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"></script>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\dcenter\templates_c\49a4ec7a93b7a88e61334c4fab607aa14817dcff_0.file.view.html.php<<<<<
<iframe src = "http://www.nagomes.com/dba/L.php/test/mqtt?m=<?php echo $_smarty_tpl->tpl_vars['dbaalert']->value;?>
>>>>d:\jp20250228\htdocs20250228\dcenter\templates_c\b3ebc571e6e76db1823f3d2b79969fcf9bca02c5_0.file.myshow.php.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"><?php echo '</script'; ?>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\dcenter\templates_c\c576fb3345501e4f21842158d1b8c223cad81c83_0.file.index.php.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
<link href="../css/kbmqtt.css" rel="stylesheet" type="text/css" />
src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"><?php echo '</script'; ?>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
var newDiv = "<div class='" + Classname + " mqtt'>" +
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\dcenter\templates_c\f4f4170c61acb9cb3dbad2ff23a8874e0d76c4d4_0.file.view.html.php<<<<<
<iframe src = "http://www.nagomes.com/dba/L.php/test/mqtt?m=<?php echo $_smarty_tpl->tpl_vars['dbaalert']->value;?>
>>>>d:\jp20250228\htdocs20250228\pda\modules\scan\mod.scanshoujian.php<<<<<
function domqttjob($machine,$data){
//mqtt data
$this->app->prepare_mqtt();
$mqttdata = array(
$this->app->mqtt->publish("MACHINE/1-4/{$machine}", json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
$this->domqttjob($ma,1);
$this->domqttjob($ma,2);
>>>>d:\jp20250228\htdocs20250228\pda\modules\scan\mod.scansmtjiaoliao.php<<<<<
$this->app->prepare_mqtt();
$this->app->mqtt->publish("testtopic/2","hi syant!" );
/*include_once("../libs/mqtt/phpMQTT.php");
$mymqtt = new Bluerhinos\phpMQTT("127.0.0.1",1883, "phpMQTT-publisher");
if ($mymqtt->connect(true, NULL, "", "")) {
$mymqtt->publish("testtopic/2", "hi syant!112233", 0, false);
$mymqtt->close();
>>>>d:\jp20250228\htdocs20250228\pda\modules\scanzcun\mod.scanrdfdkpon.php<<<<<
$this->app->prepare_mqtt();
$mqttdata = $data["mqtt"];
$machine = $mqttdata["ma"];
$mqttdata["msg"] = $data["msg"];
$mqttdata["ec"] = $data["ec"];
$mqttdata["wo"] = $machineInfo["WO"];
$mqttdata["empno"] = $machineInfo["emp_no"];
$mqttdata["jobid"] = $data["jobid"];
if ($mqttdata["ec"] == 999) {
$mqttdata["msg"] = "鍑嗗鎵撳嵃锛?;
$this->app->mqtt->publish("MACHINE/{$floor}/{$machine}", json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
//mqtt data
$mqttdata = array(
$this->app->ajaxAttr("mqtt", $mqttdata);
$this->app->prepare_mqtt();
$mqttdata = array(
$this->app->mqtt->publish($printname, json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
$mqttdata = array(
$this->app->ajaxAttr("mqtt", $mqttdata);
>>>>d:\jp20250228\htdocs20250228\pda\modules\scanzcun\mod.scanshoukpon.php<<<<<
$this->app->prepare_mqtt();
$mqttdata = $data["mqtt"];
file_put_contents("c:/wjjj.txt",var_export($mqttdata,true));
$machine = $mqttdata["ma"];
$mqttdata["msg"] = $data["msg"];
$mqttdata["ec"] = $data["ec"];
$mqttdata["wo"] = $machineInfo["WO"];
$mqttdata["empno"] = $machineInfo["emp_no"];
$mqttdata["jobid"] = $data["jobid"];
if ($mqttdata["ec"] == 999) {
$mqttdata["msg"] = "鍑嗗鎵撳嵃锛?;
$this->app->mqtt->publish("MACHINE/{$floor}/{$machine}", json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
//mqtt data
$mqttdata = array(
$this->app->ajaxAttr("mqtt", $mqttdata);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\ams\mod.setup.php<<<<<
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\ams\mod.vnc.php<<<<<
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
//$this->app->prepare_mqtt();
//$this->app->mqtt->publish("wxman/{$name}",$msg);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\machinemq\mod.index.php<<<<<
$mqttIP = $_SERVER['SERVER_NAME'];
$smarty->assign('mqttIP', $mqttIP);
$html .= "<div class='{$x} mqtt'>" .
>>>>d:\jp20250228\htdocs20250228\sfc\modules\machinepad\mod.menumain.php<<<<<
$mqttserver = $_SERVER["SERVER_NAME"];
$mqttserver = "192.168.3.58";
$smarty->assign("mqttserver", $mqttserver);
$this->app->prepare_mqtt();
$mqttdata = $data["mqtt"];
$machine = $mqttdata["ma"];
$mqttdata["msg"] = $data["msg"];
$mqttdata["ec"] = $data["ec"];
$mqttdata["wo"] = $machineInfo["WO"];
$mqttdata["empno"] = $machineInfo["emp_no"];
$mqttdata["jobid"] = $data["jobid"];
if ($mqttdata["ec"] == 999) {
$mqttdata["msg"] = "鍑嗗鎵撳嵃锛?;
$this->app->mqtt->publish("MACHINE/{$floor}/{$machine}", json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
$this->app->prepare_mqtt();
$mqttdata = array(
$this->app->mqtt->publish($printname, json_encode($mqttdata, JSON_UNESCAPED_UNICODE));
//mqtt data
$mqttdata = array(
$this->app->ajaxAttr("mqtt", $mqttdata);
$mqttdata = array(
$this->app->ajaxAttr("mqtt", $mqttdata);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\machinepad\mod.menusop.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\qrcodenz\mod.lbprt.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\sfcpad\mod.menuloc.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\sfcpad\mod.menuplan.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
>>>>d:\jp20250228\htdocs20250228\sfc\modules\sfcpad\mod.menuproduce.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
$this->app->prepare_mqtt();
$mqttdata=array(
$this->app->mqtt->publish($printname, json_encode($mqttdata,JSON_UNESCAPED_UNICODE));
>>>>d:\jp20250228\htdocs20250228\sfc\modules\sfcpad\mod.menusop.php<<<<<
$mqttserver=$_SERVER["SERVER_NAME"];
$mqttserver="192.168.1.4";
$smarty->assign("mqttserver",$mqttserver);
>>>>d:\jp20250228\htdocs20250228\sfc\templates\machinemq\index.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
<link href="/sfc/templates/machinemq/css/kbmqtt.css" rel="stylesheet" type="text/css" />
<script src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"></script>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
var newDiv = "<div class='" + Classname + " mqtt'>" +
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\sfc\templates\meskb\index.php<<<<<
<!-- mqtt.js -->
<script src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"></script>
<script src="./js/mqtt.js" type="text/javascript" charset="utf-8"></script>
>>>>d:\jp20250228\htdocs20250228\sfc\templates_c\1e18f93a2bc45cd43e12a4a1e15101264b5bdf36_0.file.index.php.php<<<<<
<title>DCC鏈嶅姟鍣?MQTT瀹炴椂鏁版嵁</title>
<link href="/sfc/templates/machinemq/css/kbmqtt.css" rel="stylesheet" type="text/css" />
src="/lib/mqtt/mqtt@4.1.0.min.js" type="text/javascript"><?php echo '</script'; ?>
const client = mqtt.connect('ws://192.168.3.58:8083/mqtt');
var newDiv = "<div class='" + Classname + " mqtt'>" +
client.publish('mqttkb/test', 'Hello syant!');
>>>>d:\jp20250228\htdocs20250228\sfc\templates_c\29efd940dd487580b1a0332940a3bbb8c79ffb80_0.file.lbprt.html.php<<<<<
src="/lib/mqtt/mqtt.min.js"><?php echo '</script'; ?>
const client = mqtt.connect('ws://<?php echo $_smarty_tpl->tpl_vars['mqttserver']->value;?>
:8083/mqtt');
// 鍒涘缓涓 |
|