Code Monkey home page Code Monkey logo

aliyun-iot's Introduction

阿里云物联网套件IOT SDK Go语言版本

  • 轻量封装,生产使用
  • 简单易使用
  • 优秀的随机字符串生成算法,良好的性能,即便 time.Now().UnixNano() 生成的随机种子,同时启动100个协程也不会重复,详情请查看测试用例
go get -u github.com/cheerego/aliyun-iot
import (
	"github.com/cheerego/aliyun-iot"
)
var c iot.Client = Client{
	AccessKeyId:     "{AccessKeyId}",
	AccessKeySecret: "{AccessKeySecret}",
	Version:         "{2018-01-20}",
	RegionId:        "{cn-shanghai}",
}


func main(){
    request := make(map[string]string)
    request["ProductKey"] = "xxxxx"
    request["Action"] = "RRpc"
    request["RequestBase64Byte"] = base64.StdEncoding.EncodeToString([]byte("1312312"))
    request["DeviceName"] = "MACHINE_100023"
    request["Timeout"] = "5000"
    res := c.Send(request)
    fmt.Println(res)
}

aliyun-iot's People

Contributors

cheerego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

carmel

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.