没有合适的资源?快使用搜索试试~ 我知道了~
mqtt-python脚本.txt
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 158 浏览量
2021-04-12
11:25:54
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
3页
该资源适合市场做智慧路灯,使用python如何添加大量设备MAC,主要是测试平台的压测
资源推荐
资源详情
资源评论
import requests
import json
import os
import time
import codecs
import random
from Login_post_token import post_token
# from client import HttpClient
#
# client = HttpClient()
url = 'http://dev.inwu.cloud:8080/api/device'
url1 = 'http://dev.inwu.cloud:8080/api/relation'
url2 = 'http://dev.inwu.cloud:8080/api/device'
token = post_token()
header={'X-Authorization': "Bearer+" + token,
'Content-Type': "application/json",
'Accept': "application/json"}
# print(header)
def getDeviceId(res):
data3 = json.loads(res.text)
id = data3["id"]["id"]
return id
f = codecs.open("demo.txt", 'r', 'utf-8', buffering=True)
index = 0
index2 =14445
index3 = 0
gatewayid = 1
import json
import os
import time
import codecs
import random
from Login_post_token import post_token
# from client import HttpClient
#
# client = HttpClient()
url = 'http://dev.inwu.cloud:8080/api/device'
url1 = 'http://dev.inwu.cloud:8080/api/relation'
url2 = 'http://dev.inwu.cloud:8080/api/device'
token = post_token()
header={'X-Authorization': "Bearer+" + token,
'Content-Type': "application/json",
'Accept': "application/json"}
# print(header)
def getDeviceId(res):
data3 = json.loads(res.text)
id = data3["id"]["id"]
return id
f = codecs.open("demo.txt", 'r', 'utf-8', buffering=True)
index = 0
index2 =14445
index3 = 0
gatewayid = 1
资源评论
- m0_666651082022-12-26感谢大佬,让我及时解决了当下的问题,解燃眉之急,必须支持!
Kali_Mr_C
- 粉丝: 3
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功