<?php

namespace app\index\controller;

use think\Controller;

use \GatewayWorker\Lib\Gateway;
class Test extends Controller
{
    public function test(){

        $Gateway = new Gateway();
        $Gateway::$registerAddress = '127.0.0.1:2345';
        $Gateway::sendToAll('来自服务端的主动推送'.date('Y-m-d H:i:s'));

    }

    public function test2(){
        //血糖,5秒
        $str = '  7.2mmol/L (GLUC 2023/12/29 06:05 SN:PMA231223000006 )';
        //尿酸,16秒
        $str = '  381umol/L ( UA  2023/12/29 06:21 SN:PMA231223000006 )';
        //胆总,26秒
        $str = ' 3.91mmol/L (CHOL 2023/12/29 06:25 SN:PMA231223000006 )';
    }
}