Search found 3 matches

by ptjm8422
Tue May 29, 2018 10:48 am
Forum: Development of MicroPython
Topic: Returning a struct or items from a struct (mp_obj_new_struct?!?)
Replies: 4
Views: 2951

Re: Returning a struct or items from a struct (mp_obj_new_struct?!?)

I am trying to expose the SDK functions, essentially just promiscuous mode, to be able to read raw packets, from the ESP8266. I unfortunately haven't seen anyone try to do this with Micropython. Therefore I am building my own module. So far semi-successfully. I exaggerate on being completely new, bu...
by ptjm8422
Mon May 28, 2018 10:32 pm
Forum: Development of MicroPython
Topic: Returning a struct or items from a struct (mp_obj_new_struct?!?)
Replies: 4
Views: 2951

Re: Returning a struct or items from a struct (mp_obj_new_struct?!?)

Progress has been made! I have used mp_obj_new_bytearray, however that means I can only output one item from the struct. I have fixed it with a potential workaround but it there is a way to return the items in the struct variable as a python dictionary(?), that would be ideal!
by ptjm8422
Sun May 27, 2018 8:10 pm
Forum: Development of MicroPython
Topic: Returning a struct or items from a struct (mp_obj_new_struct?!?)
Replies: 4
Views: 2951

Returning a struct or items from a struct (mp_obj_new_struct?!?)

Hi, this is probably the worst thing to say when looking for help but I am completely new to C, and micropython. I have been playing around with ESP8266's for a little while, and I began a project where I ended up way over my head, simply writing in the Arduino IDE. As I more or less know python to ...