ieo智能亮灯模块,亮灯货架系统接口调用实例说明
PTL电子拣选系统,ws2811灯珠控制

2024-12-25

 

走HTTP协议,控制某个led灯点亮或熄灭,如下操作:

 

向地址: http://设备IP/cgi_bin/led_control提交如下格式数据,

请求数据

{

type: "2811",                 //表示控制的灯珠类型2811

color: 0,                        //数字表示点亮后的led灯颜色,0表示黑色(灭灯),255代表蓝色

lights: {0: [0, 1, 2, 3, 4]   //点亮前5颗灯珠

}

}

 

实例一:【让前5颗led灯珠, 最大强度的亮蓝色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 255,

lights: {0: [0, 1, 2, 3, 4]}

}

 

实例二:【让前5颗led灯珠, 最弱强度的亮蓝色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 1,

lights: {0: [0, 1, 2, 3, 4]}

}

 

 

实例三:【熄灭前5颗灯珠】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 0,

lights: {0: [0, 1, 2, 3, 4]}

}

 

实例四:【让前2颗led灯珠, 最大强度的亮绿色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 65280,

lights: {0: [0, 1]}

}

 

实例五:【让前2颗led灯珠, 最弱强度的亮绿色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 256,

lights: {0: [0, 1]}

}

 

实例六:【让第一颗led灯珠, 最大强度的亮红色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 16711680,

lights: {0: [0]}

}

 

实例七:【让第一颗led灯珠, 最弱强度的亮红色】

向地址:http://192.168.0.123:8080/cgi_bin/led_control

post提交如下数据:

{

type: "2811", color: 65281,

lights: {0: [0]}

}

 

更多详情请咨询客服人员,或者发送电子邮件179365311@qq.com

 

Copyright © 深圳市艾易欧科技有限公司 All rights reserved.

 

粤ICP备14038518号