netpie2015 / microgear-python Goto Github PK
View Code? Open in Web Editor NEWNETPIE client library for Python
Home Page: https://netpie.io
License: ISC License
NETPIE client library for Python
Home Page: https://netpie.io
License: ISC License
Reconnect is not success (unable to recover) from network cable fault test.
Reset token is seem never success.
There only way to recover network cable fault by restart!!
add key
to object and maintain compatability.
Handle invalid cache.
When current key
is not match with key
in cache send revoke token then clear credential in cache.
Massage which come from /&id/<token>/#
in lib on message
on_rejected เป็น event ที่เกิดเมื่อ microgear เชื่อมต่อไม่สำเร็จ เนื่องจาก token ถูกปฏิเสธ อาจเป็นเพราะ token ถูก revoke หรือ disable
:)
after
pip install microgear
u must
pip install paho-mqtt==1.2.0
to fix this.
scope
เป็นการต่อกันของ string ในรูปแบบต่อไปนี้ คั่นด้วยเครื่องหมาย comma
ตัวอย่างจาก NodeJS
var microgear = MicroGear.create({
gearkey : "sXfqDcXHzbFXiLk",
gearsecret : "DNonzg2ivwS8ceksykGntrfQjxbL98",
scope : "r:/outdoor/temp,w:/outdoor/valve,name:logger,chat:plant"
});
Add "lable" into option parameter in client.create()
.
Add library constant eg. "PY11g;" -> Python 1.1.7
both lable and lib version will send to NETPIE via verifier
ล้าง token ออกจาก cache ส่งผลให้ microgear ต้องขอ token ใหม่
ลองดูว่ารันบน Python 3 ได้หรือเปล่า เพราะ dependency ที่ใช้ อาจจะยังไม่สนับสนุน
เป็น event ที่เกิดมี error ขึ้นภายใน microgear
4: Invalid token -- Reset stored access token
5: Unauthorized or disabled key -- Try to reconnect with existing access token
Change token request endpoint to ??? for new feature
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.