Search found 21 matches

by a-ha
Tue Jul 07, 2020 6:10 pm
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 8
Views: 240

Re: TypeError: 'bytearray' object doesn't support item deletion

It is being used to read streaming tcp data from the server. At the low level data reading, it is unstructured.
by a-ha
Mon Jul 06, 2020 10:20 pm
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 8
Views: 240

Re: TypeError: 'bytearray' object doesn't support item deletion

That would work, but I am trying to avoid the object copy.
This is a data buffer which can contain huge data/bytes. The ideal is to remove in-line.
by a-ha
Mon Jul 06, 2020 7:25 pm
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 8
Views: 240

TypeError: 'bytearray' object doesn't support item deletion

It appears the del on bytearray is not supported.
I am getting TypeError: 'bytearray' object doesn't support item deletion
Any idea for workaround?
-aha

Code: Select all

    buffer = bytearray()
    ...
    del buffer[0:i + 1]
by a-ha
Sun Jul 05, 2020 2:53 am
Forum: Programs, Libraries and Tools
Topic: Flashing firmware: accessing USB port from WSL environment
Replies: 0
Views: 65

Flashing firmware: accessing USB port from WSL environment

I have configured my WSL/Linux environment for building upython. I can build the firmware successfully. Great job to upython dev team for supporting WSL env! Currently I still need to go back to windows env to flash the firmware. I am having issues with the /dev/ttyS3 which is supposed to be mapped ...
by a-ha
Sat Jul 04, 2020 9:33 pm
Forum: ESP32 boards
Topic: Looking for LoRaWan board
Replies: 2
Views: 74

Re: Looking for LoRaWan board

Thanks!
by a-ha
Sat Jul 04, 2020 6:31 pm
Forum: ESP32 boards
Topic: Looking for LoRaWan board
Replies: 2
Views: 74

Looking for LoRaWan board

Hello,

I am looking for esp32-based board with LoRaWan capability which runs upython.
If you know one, please share it. I would like to hear the experience.
Thanks

a-ha
by a-ha
Sat Jul 04, 2020 6:28 pm
Forum: ESP32 boards
Topic: TTGO T-WATCH-2020
Replies: 9
Views: 366

Re: TTGO T-WATCH-2020

True. But I would treat it as affordable compact dev board with plenty of extra goodies:
- ample flash/sram (16MB/8MB)
- accelerator
- small touch screen screen
by a-ha
Sat Jul 04, 2020 7:48 am
Forum: Programs, Libraries and Tools
Topic: Getting error when using 'with' on socket
Replies: 2
Views: 117

Re: Getting error when using 'with' on socket

Thanks for raising the issue! I appreciated this.
by a-ha
Sat Jul 04, 2020 7:15 am
Forum: ESP32 boards
Topic: TTGO T-WATCH-2020
Replies: 9
Views: 366

TTGO T-WATCH-2020

Has anyone experienced using this esp32 watch with micropython? I suppose this is indeed supported with the generic esp32 firmware. Could someone confirm please? Thanks a-ha Details: https://www.tindie.com/products/ttgo/lilygor-ttgo-t-watch-2020/ https://hackaday.com/2020/05/22/is-that-an-esp32-on-y...
by a-ha
Sat Jul 04, 2020 12:11 am
Forum: Programs, Libraries and Tools
Topic: Getting error when using 'with' on socket
Replies: 2
Views: 117

Getting error when using 'with' on socket

Hello,

I am getting error when using the following construct (which runs fine on pc python):
socket.socket(with socket.AF_INET, socket.SOCK_STREAM) as s:

The error says:
AttributeError: 'socket' object has no attribute '__exit__'

/a-ha