Questions tagged [python]

Python is a widely used interpreted, high-level, general-purpose programming language with many excellent libraries to extend its core functionality.

Filter by
Sorted by
Tagged with
2
votes
1answer
23 views

How to setup a one-writer, one-reader system between a python script updating data from my home computer and an RPI reading the data?

This is my first project involving IOT, or even very much internet protocol for that matter. THE SHORT: I have a few programs on my home computer that search for live stock price data continuously. I ...
1
vote
0answers
42 views

ESP32-S2 CircuitPython 5x OLED displays (I2C)

I want to use the ESP32-S2 with CircuitPython and 5x 0.96inch OLED I2C displays. It's working fine, but only with 2 displays. When I assign "i2c3" or more, I'm getting an error. When I keep ...
0
votes
0answers
109 views

Circuit Playground Express not showing CIRCUITPY drive

I got a Circuit Playground Express to serve as an anti-slumper device. Several mini-USB cables were power-only, and I tested them with the Arduino IDE and C code until one worked. I reset the board to ...
1
vote
1answer
107 views

Connect to Mqtt over websockets

I'm trying to connect on a broker with the following script #!/user/bin/env python import paho.mqtt.client as mqtt import random import requests import warnings import LoggingManager logger = ...
2
votes
2answers
88 views

Python Paho MQTT 2.5 KB messages not sending for days, while 0.1 KB messages send fine

I've got powerful dual-core IoT gateways in the field with high-speed cellular modems and good internet connections, but they fail to send 2.5 KB MQTT messages to my AWS IoT message broker. My program ...
1
vote
1answer
43 views

Wheel skid detection

I am working on a project which sensed four speed by using hall sensor attached to wheel by using raspberry pi. I have wrote program for that only issue with that it gives fairly good results when ...
1
vote
0answers
255 views

How to reconnect to MQTT server after CONNECTIONLOST?

I'm using a Raspberry Pi 3B+ with SIM7600X 4G HAT for communication with Python. I want to connect to MQTT server to receive messages via writing MQTT commands directly to the serial port of the ...
0
votes
1answer
100 views

Python Paho MQTT doesn't work via LTE

I'm using Raspberry Pi 3 B+ with a SIM7600X 4G HAT for SMS and mobile internet connection. I want to use Paho MQTT library (it works fine), but it only works via Ethernet or Wifi. How can I use the ...
3
votes
1answer
1k views

Unable to publish MQTT server in an infinite while loop in Python script

I'm curious to know what the performance of an MQTT server is like. So I created this Python script: import time import paho.mqtt.client as mqtt from multiprocessing import Pool def on_connect(...
0
votes
0answers
27 views

Can someone guide me in the right direction of a logging stack for a Linux IoT device?

Let's say I have a Linux IoT device running full Ubuntu Server 18.04, and that the "firmware" is written in python. What are my options for building a logging stack, i.e. writing logs from the ...
1
vote
0answers
106 views

Receiving Data from MacBAT 5 in python

I need to be able to communicate with a PLUM-EVC, MacBat 5 from a remote server using Python. I have been given parameters, IP and Port which are required to get the data from EVC. I am completely ...
0
votes
1answer
60 views

Can I compile Python on my PC, load it to an ESP32 and run it?

As a follow-up from Can I retrieve a Python program from an ESP32?, I would like to make things a little more difficult for those who would steal my code (I do realize that I cannot prevent it). Can ...
0
votes
1answer
37 views

Can I retrieve a Python program from an ESP32?

As per the title. If I have an ESP32 with some Python loaded, and have lost the source, can I retrieve it from the ESP32?
1
vote
0answers
85 views

Debugging Python on the BBC micro:bit with Pycharm

I am following this guide which seems to be excllent, except for one litte problem: When I debug, a breakpoint which I set on the first line is nor reached and the script seems to hang. The debugger ...