Coder Social home page Coder Social logo

Comments (3)

zhangliming77 avatar zhangliming77 commented on August 24, 2024

package main

import (
"fmt"

"github.com/lkqm/hcnetsdk-go"

)

func main() {
var port int
var ip, user, password string
userId, err := hcnetsdk.Login(ip, port, user, password)
if err != nil {
fmt.Printf("Login device error: %s", err)
return
}
date, err := hcnetsdk.GetDeviceTime(userId)
if err != nil {
fmt.Printf("Get device time error: %s", err)
return
}
fmt.Printf("Current device time: %s", date)
}

from hcnetsdk-go.

lkqm avatar lkqm commented on August 24, 2024

cgo很久没弄了,你可以尝试clone下项目跑下单测看看

from hcnetsdk-go.

zhangliming77 avatar zhangliming77 commented on August 24, 2024

看起来是mac os下少了动态链接库HCCore.dylib (darwin目录)

from hcnetsdk-go.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.