1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        Php-serialPHP串口開(kāi)發(fā)包

        聯(lián)合創(chuàng)作 · 2023-10-01 02:09

        你想通過(guò)編寫php語(yǔ)言去操縱如視頻,音頻或計(jì)算機(jī)的串并口設(shè)備?現(xiàn)在是可以變成現(xiàn)實(shí)了。使用php-serial這個(gè)開(kāi)源項(xiàng)目 ,可以很容易地去實(shí)現(xiàn)。比如只需要調(diào)用deviceSet()方法,將串 口名傳遞進(jìn)去就可以了,接著就可以使用簡(jiǎn)單的讀和寫的方法了,比如:

        #div_code img { border: 0px none ; }
        <?
        deviceSet( ' COM2 ' );
        $seria --> deviceOpen();
        $serial -> sendMessage( ' Sending a message to the port! ' );
        $serial -> deviceClose();
        ?>

         

        瀏覽 27
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            亂伦国产一区二区三区电影 | 第九色区| 亚洲一二三 | 婷婷激情中文字幕 | 来个欧美操逼的 | 日本草逼网 | 91精品一区二区三区在线 | 国产成人无码AA片免费看 | 爱爱欧美 | 婷婷激情综合 |