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
1
vote
0answers
68 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
41 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 ...
1
vote
1answer
264 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
22 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
46 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
33 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
32 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
37 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 ...