Search found 8 matches

by jeancf
Sat Jan 07, 2017 10:07 am
Forum: ESP8266 boards
Topic: AttributeError: type object 'socket' has no attribute 'timeout'
Replies: 3
Views: 4596

Re: AttributeError: type object 'socket' has no attribute 'timeout'

Thanks for the workaround. I can use it for now. I will file a bug.

/~JC
by jeancf
Wed Jan 04, 2017 7:41 pm
Forum: ESP8266 boards
Topic: AttributeError: type object 'socket' has no attribute 'timeout'
Replies: 3
Views: 4596

AttributeError: type object 'socket' has no attribute 'timeout'

I am running micropython 1.8.6 on a Wemos D1 mini v1. I have an application that uses UDP sockets. It runs but I have a problem catching `timeout` exceptions. This code: from machine import UART import socket uart = UART(0, 115200) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.settimeout(2....
by jeancf
Fri Oct 07, 2016 8:07 am
Forum: ESP8266 boards
Topic: 'module' object has no attribute 'IPPROTO_UDP'
Replies: 3
Views: 2295

Re: 'module' object has no attribute 'IPPROTO_UDP'

Omitting socket.IPPROTO_UDP works, thanks. By the way, I am also packing my data in a struct for sending in the datagram. The import of the struct module does not follow this convention : The modules are available by their u-name, and also by their non-u-name. The non-u-name can be overridden by a f...
by jeancf
Thu Oct 06, 2016 8:30 pm
Forum: ESP8266 boards
Topic: 'module' object has no attribute 'IPPROTO_UDP'
Replies: 3
Views: 2295

'module' object has no attribute 'IPPROTO_UDP'

I am writing an app that uses an UDP socket. I saw that the documentation has been updated recently to add the UDP socket functionality that was not present before. However when I call socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) I get AttributeError: 'module' object has no a...
by jeancf
Sun May 01, 2016 9:43 am
Forum: WiPy and CC3200 boards
Topic: No serial access over USB through Expansion Board
Replies: 4
Views: 2119

Re: No serial access over USB through Expansion Board

I wrote a test case to check serial communication over USB. I put this in main (sorry, tabulations get removed but the forum so I used '.' instead): from machine import UART import utime uart = UART(0, baudrate=115200) while True: ....uart.write('Listening... send me something.\n') ....while uart.an...
by jeancf
Sun May 01, 2016 9:26 am
Forum: WiPy and CC3200 boards
Topic: No serial access over USB through Expansion Board
Replies: 4
Views: 2119

Re: No serial access over USB through Expansion Board

Frida: thanks. Instead I added myself to the 'dialout' group that has rw control on /dev/ttyUSBx which has the same result without the need to touch udev rules. Platforma: My moserial settings are: * Baudrate: 115200 * Data Bits: 8 * Stop Bits: 1 * Parity: None * Handshake: Hardware and Software * A...
by jeancf
Fri Apr 29, 2016 9:14 am
Forum: WiPy and CC3200 boards
Topic: No serial access over USB through Expansion Board
Replies: 4
Views: 2119

No serial access over USB through Expansion Board

Hi, I received my new Wipy yesterday. I managed to connect through Wi-Fi (both telnet and ftp work fine). I also managed to connect to UART0 with a USB-to-serial converter attached to pins G1 and G2 on the expansion board. The thing that refuses to work is serial connection thjrough a USB cable conn...