go语言串口通讯

1.串口通信

"github.com/tarm/serial"

package main

 

import (

         "encoding/hex"

         "fmt"

         "github.com/tarm/serial"

         "strconv"

         "time"

)

 

func SensorInfo() ([10]bool, [10]float64, [10]float64) {

         var existPeople [10]bool

         var temperature [10]float64

         var humidity [10]float64

 

         con

猜你喜欢

转载自blog.csdn.net/weixin_42544051/article/details/102971637
今日推荐