Search found 9 matches

by johncblacker
Mon Apr 05, 2021 3:06 pm
Forum: Programs, Libraries and Tools
Topic: How to send file using urequests.
Replies: 8
Views: 10027

Re: How to send file using urequests.

How do I get the "contents" of the file included? Do I:
f = open('foo.jpeg', 'rb')
dat = f.read()

and then include that "dat" into the multipart/form-data between boundary statements?

Thanks for the help...
by johncblacker
Tue Mar 30, 2021 4:14 pm
Forum: ESP32 boards
Topic: urequests object with buffer protocol required
Replies: 1
Views: 2747

urequests object with buffer protocol required

I'm trying to get a program to push a notification to my phone via pushbullet. I found some code that supposedly works(or worked at some time) and get an error: File "C:\Users\jobla\Documents\Micropython-Projects\workSpace\RNT-ESP32-ESP8266\visitorpush.py", line 87, in <module> File "C:\Users\jobla\...
by johncblacker
Wed Mar 10, 2021 12:19 am
Forum: ESP32 boards
Topic: Esp32-S2 port
Replies: 4
Views: 4969

Re: Esp32-S2 port

Well cPy support is a misnomer!
by johncblacker
Fri Feb 12, 2021 12:54 pm
Forum: ESP8266 boards
Topic: microwave sensors (rcwl-0516)
Replies: 1
Views: 2783

Re: microwave sensors (rcwl-0516)

There's no reason this shouldn't work as all it does is send a "high" or "low" signal to a pin on the mp board. I'm going to try to integrate the rcwl-0516 with my esp32-cam code. My goal is to have the rcwl-0516 send a signal to the program when a person comes into view and trigger the esp32-cam to...
by johncblacker
Tue Jan 22, 2019 9:03 pm
Forum: WiPy and CC3200 boards
Topic: new WiPy can't connect
Replies: 2
Views: 32518

new WiPy can't connect

I just received a new WiPy board, put power to it and I get a blue light flashing about every 4 seconds; however, I can't connect to the board with telnet, nor can I connect my tablet to it's AP - which is asking for a password and I've tried python, micropython and micropythoN to no avail. Telnet s...
by johncblacker
Tue Jan 08, 2019 8:53 pm
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 29
Views: 109018

Re: uPing - Ping library for MicroPython

experimenting a little and found that it definitely doesn't like "usocket.SOCK_RAW"; however, I can print usocket.SOCK_RAW and get an output value of 3...
by johncblacker
Tue Jan 08, 2019 8:35 pm
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 29
Views: 109018

Re: uPing - Ping library for MicroPython

Running into a problem trying to run uping.ping('192.168.0.2') I get: >>> uping.ping('192.168.0.2') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "uping.py", line 49, in ping OSError: [Errno 22] Invalid argument Tried again: >>> import usocket >>> sock = usocket.socket(...
by johncblacker
Mon Nov 12, 2018 12:29 am
Forum: General Discussion and Questions
Topic: The viper code emitter
Replies: 4
Views: 5173

Re: The viper code emitter

I tried rebuilding circuitpython with the setting changed to enable the viper emitter and when I used a decorator, the board flashed it's error led at me pointing to the line with the decorator on it! Once I took it off, the program took off again. How can I find out what's wrong and fix it?
by johncblacker
Sun Nov 11, 2018 8:18 pm
Forum: Other Boards
Topic: Problems building circuitpython no module named huffman
Replies: 1
Views: 3133

Problems building circuitpython no module named huffman

I cloned circuitpython and am trying to build mpy-cross, but I get an error during the build that indicates that an
import Huffman failed with a ModuleNoteFoundError: No module named 'huffman'. How do I get around this error? I will also post this on the Adafruit circuitpython forum as well.