Skip to content

Commit

Permalink
Add 8000 dev+++
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Mar 14, 2020
1 parent ae71b73 commit 6ac2668
Show file tree
Hide file tree
Showing 32 changed files with 1,659 additions and 24 deletions.
183 changes: 182 additions & 1 deletion modules/okbit/_okbit_devices_discover.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,188 @@
$in_out = '';
$in_out = explode(',',DATE_8004);
}


if ($rec['DEVICE'] =='8005'){
$in_out = '';
$in_out = explode(',',DATE_8005);
}

if ($rec['DEVICE'] =='8006'){
$in_out = '';
$in_out = explode(',',DATE_8006);
}

if ($rec['DEVICE'] =='8007'){
$in_out = '';
$in_out = explode(',',DATE_8007);
}

if ($rec['DEVICE'] =='8008'){
$in_out = '';
$in_out = explode(',',DATE_8008);
}

if ($rec['DEVICE'] =='8009'){
$in_out = '';
$in_out = explode(',',DATE_8009);
}

if ($rec['DEVICE'] =='8010'){
$in_out = '';
$in_out = explode(',',DATE_8010);
}

if ($rec['DEVICE'] =='8011'){
$in_out = '';
$in_out = explode(',',DATE_8011);
}

if ($rec['DEVICE'] =='8012'){
$in_out = '';
$in_out = explode(',',DATE_8012);
}

if ($rec['DEVICE'] =='8013'){
$in_out = '';
$in_out = explode(',',DATE_8013);
}

if ($rec['DEVICE'] =='8014'){
$in_out = '';
$in_out = explode(',',DATE_8014);
}

if ($rec['DEVICE'] =='8015'){
$in_out = '';
$in_out = explode(',',DATE_8015);
}

if ($rec['DEVICE'] =='8016'){
$in_out = '';
$in_out = explode(',',DATE_8016);
}

if ($rec['DEVICE'] =='8017'){
$in_out = '';
$in_out = explode(',',DATE_8017);
}

if ($rec['DEVICE'] =='8018'){
$in_out = '';
$in_out = explode(',',DATE_8018);
}

if ($rec['DEVICE'] =='8019'){
$in_out = '';
$in_out = explode(',',DATE_8019);
}

if ($rec['DEVICE'] =='8020'){
$in_out = '';
$in_out = explode(',',DATE_8020);
}

if ($rec['DEVICE'] =='8021'){
$in_out = '';
$in_out = explode(',',DATE_8021);
}

if ($rec['DEVICE'] =='8022'){
$in_out = '';
$in_out = explode(',',DATE_8022);
}

if ($rec['DEVICE'] =='8023'){
$in_out = '';
$in_out = explode(',',DATE_8023);
}

if ($rec['DEVICE'] =='8024'){
$in_out = '';
$in_out = explode(',',DATE_8024);
}

if ($rec['DEVICE'] =='8025'){
$in_out = '';
$in_out = explode(',',DATE_8025);
}

if ($rec['DEVICE'] =='8026'){
$in_out = '';
$in_out = explode(',',DATE_8026);
}

if ($rec['DEVICE'] =='8027'){
$in_out = '';
$in_out = explode(',',DATE_8027);
}

if ($rec['DEVICE'] =='8028'){
$in_out = '';
$in_out = explode(',',DATE_8028);
}

if ($rec['DEVICE'] =='8029'){
$in_out = '';
$in_out = explode(',',DATE_8029);
}

if ($rec['DEVICE'] =='8030'){
$in_out = '';
$in_out = explode(',',DATE_8030);
}

if ($rec['DEVICE'] =='8031'){
$in_out = '';
$in_out = explode(',',DATE_8031);
}

if ($rec['DEVICE'] =='8032'){
$in_out = '';
$in_out = explode(',',DATE_8032);
}

if ($rec['DEVICE'] =='8033'){
$in_out = '';
$in_out = explode(',',DATE_8033);
}

if ($rec['DEVICE'] =='8034'){
$in_out = '';
$in_out = explode(',',DATE_8034);
}

if ($rec['DEVICE'] =='8035'){
$in_out = '';
$in_out = explode(',',DATE_8035);
}

if ($rec['DEVICE'] =='8036'){
$in_out = '';
$in_out = explode(',',DATE_8036);
}

if ($rec['DEVICE'] =='8037'){
$in_out = '';
$in_out = explode(',',DATE_8037);
}

if ($rec['DEVICE'] =='8038'){
$in_out = '';
$in_out = explode(',',DATE_8038);
}

if ($rec['DEVICE'] =='8039'){
$in_out = '';
$in_out = explode(',',DATE_8039);
}

if ($rec['DEVICE'] =='8040'){
$in_out = '';
$in_out = explode(',',DATE_8040);
}


}

if ($ok) {
Expand Down
150 changes: 148 additions & 2 deletions modules/okbit/lib/udp_package.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,163 @@
}

if ($cmd_devices['DEVICE'] == 8002){
$cmd_dev = explode(',',DATE_8004);
$cmd_dev = explode(',',DATE_8002);
}

if ($cmd_devices['DEVICE'] == 8003){
$cmd_dev = explode(',',DATE_8004);
$cmd_dev = explode(',',DATE_8003);
}

if ($cmd_devices['DEVICE'] == 8004){
$cmd_dev = explode(',',DATE_8004);
}

if ($cmd_devices['DEVICE'] == 8005){
$cmd_dev = explode(',',DATE_8005);
}

if ($cmd_devices['DEVICE'] == 8006){
$cmd_dev = explode(',',DATE_8006);
}

if ($cmd_devices['DEVICE'] == 8007){
$cmd_dev = explode(',',DATE_8007);
}

if ($cmd_devices['DEVICE'] == 8008){
$cmd_dev = explode(',',DATE_8008);
}

if ($cmd_devices['DEVICE'] == 8009){
$cmd_dev = explode(',',DATE_8009);
}

if ($cmd_devices['DEVICE'] == 8010){
$cmd_dev = explode(',',DATE_8010);
}

if ($cmd_devices['DEVICE'] == 8011){
$cmd_dev = explode(',',DATE_8011);
}

if ($cmd_devices['DEVICE'] == 8012){
$cmd_dev = explode(',',DATE_8012);
}

if ($cmd_devices['DEVICE'] == 8013){
$cmd_dev = explode(',',DATE_8013);
}

if ($cmd_devices['DEVICE'] == 8014){
$cmd_dev = explode(',',DATE_8014);
}

if ($cmd_devices['DEVICE'] == 8015){
$cmd_dev = explode(',',DATE_8015);
}

if ($cmd_devices['DEVICE'] == 8016){
$cmd_dev = explode(',',DATE_8016);
}

if ($cmd_devices['DEVICE'] == 8017){
$cmd_dev = explode(',',DATE_8017);
}

if ($cmd_devices['DEVICE'] == 8018){
$cmd_dev = explode(',',DATE_8018);
}

if ($cmd_devices['DEVICE'] == 8019){
$cmd_dev = explode(',',DATE_8019);
}

if ($cmd_devices['DEVICE'] == 8020){
$cmd_dev = explode(',',DATE_8020);
}

if ($cmd_devices['DEVICE'] == 8021){
$cmd_dev = explode(',',DATE_8021);
}

if ($cmd_devices['DEVICE'] == 8022){
$cmd_dev = explode(',',DATE_8022);
}

if ($cmd_devices['DEVICE'] == 8023){
$cmd_dev = explode(',',DATE_8023);
}

if ($cmd_devices['DEVICE'] == 8024){
$cmd_dev = explode(',',DATE_8024);
}

if ($cmd_devices['DEVICE'] == 8025){
$cmd_dev = explode(',',DATE_8025);
}

if ($cmd_devices['DEVICE'] == 8026){
$cmd_dev = explode(',',DATE_8026);
}

if ($cmd_devices['DEVICE'] == 8027){
$cmd_dev = explode(',',DATE_8027);
}

if ($cmd_devices['DEVICE'] == 8028){
$cmd_dev = explode(',',DATE_8028);
}

if ($cmd_devices['DEVICE'] == 8029){
$cmd_dev = explode(',',DATE_8029);
}

if ($cmd_devices['DEVICE'] == 8030){
$cmd_dev = explode(',',DATE_8030);
}

if ($cmd_devices['DEVICE'] == 8031){
$cmd_dev = explode(',',DATE_8031);
}

if ($cmd_devices['DEVICE'] == 8032){
$cmd_dev = explode(',',DATE_8032);
}

if ($cmd_devices['DEVICE'] == 8033){
$cmd_dev = explode(',',DATE_8033);
}

if ($cmd_devices['DEVICE'] == 8034){
$cmd_dev = explode(',',DATE_8034);
}

if ($cmd_devices['DEVICE'] == 8035){
$cmd_dev = explode(',',DATE_8035);
}

if ($cmd_devices['DEVICE'] == 8036){
$cmd_dev = explode(',',DATE_8036);
}

if ($cmd_devices['DEVICE'] == 8037){
$cmd_dev = explode(',',DATE_8037);
}

if ($cmd_devices['DEVICE'] == 8038){
$cmd_dev = explode(',',DATE_8038);
}

if ($cmd_devices['DEVICE'] == 8039){
$cmd_dev = explode(',',DATE_8039);
}

if ($cmd_devices['DEVICE'] == 8040){
$cmd_dev = explode(',',DATE_8040);
}



$com_reg = $cmd_dev[$udp_package['vol_1'] - 1]; //вычисляем топик okbit_date по номмеру регистра

$this->processCommand($cmd_devices['ID'], $com_reg, $udp_package['vol_2']);
Expand Down
Loading

0 comments on commit 6ac2668

Please sign in to comment.