store_mqtt_data_in_database's People
Forkers
poojakharvi smdeep magnomatos822 xe1gyq jantz021991 sunenhao ronbal madeirajp mhaleywgtn shohei branati irvanbudiawan rubenszimbres onisimchukv madasepandri tfischer4765 anvornial michal-ara e-n-g-xor eddie007bkk lordsayur seregega admgl trikihatem maroju100 larreamikel aykhe andriy-l mbradley612 florisvanbeekum barneey96 d900139 asleum hanung665 pataridisg zsoltn virgilioshadow learnershuvam nopmicrowave ngophuhung96 mstroehle hbfrank rizalresi barnesdc dragonpunch robmarkcole zwmyint kimaurellano sbarkhudaryan athapa1 pziemniak gogogogogogog giaun chimukah ssitb slimteam testing1user sonlinux ambarwariagus dwenelite felipenwelter tr4c3d meet126 aka-z mayace iainmbarker rizkydermawan1992 hamza-dotcom iamjoost xfyecn jameskim-ai madesgriya pyarx to-beas made-teale ricardotasconucv pubududealwis barrendero aldiansyahah tedchiu amoolya-gargstore_mqtt_data_in_database's Issues
mqtt_Publish_Dummy_Data.py - SyntaxError: Missing parentheses in call to 'print'
when I call the script I get an error:
mqtt_Publish_Dummy_Data.py", line 27
print "Unable to connect to MQTT Broker..."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unable to connect to MQTT Broker...")?
I am working in Windows
sensor data reading code is not returning any value
TimeoutError: Connection attempt failed
issue with on_connect command
mqtt_Publish_Dummy_Data.py is working fine, but with mqtt_Listen_Sensor_Data.py I have an issue with on_connect command:
python mqtt_Listen_Sensor_Data.py Traceback (most recent call last): File "mqtt_Listen_Sensor_Data.py", line 45, in <module> mqttc.loop_forever() File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 1481, in loop_forever rc = self.loop(timeout, max_packets) File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 1003, in loop rc = self.loop_read(max_packets) File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 1284, in loop_read rc = self._packet_read() File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 1849, in _packet_read rc = self._packet_handle() File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 2311, in _packet_handle return self._handle_connack() File "/usr/lib/python2.7/site-packages/paho/mqtt/client.py", line 2372, in _handle_connack self.on_connect(self, self._userdata, flags_dict, result) TypeError: on_connect() takes exactly 3 arguments (4 given)
Listen sensor doesn't print payload
Line print "Data: " + msg.payload
on the file mqtt_Listen_Sensor_Data.py
can't print the content of the payload. The value cames as byte. I already used the decode('utf-8')
to fix it.
print ("Data: " + msg.payload.decode('utf-8'))
I'm using Python3.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.