more implementation

This commit is contained in:
Ben Menking committed 2026-05-10 15:27:51 -04:00
1 parent d053f7e3eb
commit 9eeb383ee4
7 files changed
+293 -18

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?php
use Menking\Meshcore\CoreProtocol;
use Menking\Meshcore\Environment;
use Menking\Meshcore\Meshcore;
require(__DIR__ . '/../vendor/autoload.php');
if( !isset($argv[1]) ) die("{$argv[0]} <port>\n");
Environment::configure($argv[1]);
$mc = Meshcore::getInstance();
$resp = $mc->appStart("battery storage");
$resp = $mc->getStats(CoreProtocol::STATS_TYPE_CORE);
print_r($resp);
usleep(250000);
$resp = $mc->getStats(CoreProtocol::STATS_TYPE_RADIO);
print_r($resp);
usleep(250000);
$resp = $mc->getStats(CoreProtocol::STATS_TYPE_PACKETS);
print_r($resp);