Questions tagged [api]

6 questions
2
votes
2 answers

How can one make MicroPython HTTPS REST API requests on Pico W?

I'm unable to make MicroPython REST API requests from the Pico W. The WLAN connection is working but the API call fails. ► API call| Not working - Wokwi Pico W Simulator # Import modules import network import urequests # Connect to WLAN wlan =…
Ayan Mullick
  • 121
  • 1
  • 5
2
votes
1 answer

Programatically Establishing When RPi Supply Voltage is Too Low

Responses to this post: How does RPi "know" when it hasn't got enough power indicate that there is a digital input somewhere on the RPi which indicates what the supply voltage has dropped off too low. How can this be accessed by a script, please?…
KDM
  • 718
  • 1
  • 9
  • 24
1
vote
0 answers

OSError: -2, File "urequests.py", line 76, in request

I am working with Pi Pico W, it is already connected to the Wi-Fi, I can see it in the ifconfig() output. Furthermore, I am using this urequests code from…
R. Baraiya
  • 109
  • 5
0
votes
0 answers

No module named 'google' - OR - "The hard and long way it is to develop in Raspberry PI"

... Short story: I have a Python program with just one line: from google.auth.transport.requests import Request When I run it from the python3 command or from Thonny, I get this message: ModuleNotFoundError: No module named 'google' I had…
Roger
  • 101
0
votes
3 answers

Trying to debug why the magnetic sensor of my MPU9250/6500 Gyroscope Acceleration Magnetic Sensor won't connect via I2C but all the other sensors will

I am trying to debug why the magnetic sensor of my MPU9250/6500 9-Axis 9 DOF 16 Bit Gyroscope Acceleration Magnetic Sensor IIC/SPI won't connect to my Raspberry Pi 4+, but all the other sensors will. I am using the MPU-9250-Sensors-Data-Collect API…
SomeoneElse
  • 109
  • 4
-1
votes
1 answer

#include files for https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Pi5 C/C++ development

Referring to https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Writing code to use the SPI API's on a Pi5(RP1). The spec shows the basic Structs for each SPI API. Those structs contain additional structs and I cannot find the include…
Tom
  • 59
  • 4