Search found 81 matches

by ajie_dirgantara
Mon Nov 25, 2019 1:56 pm
Forum: Development of MicroPython
Topic: Bypass password and key input in webrepl
Replies: 2
Views: 2422

[SOLVED] Re: Bypass password and key input in webrepl

Yes, I've been successfully bypass password by change STATE_PASSWD to STATE_NORMAL like below. STATIC mp_obj_t webrepl_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 1, 2, false); mp_get_stream_raise(args[0], MP_STREAM_OP_READ |...
by ajie_dirgantara
Sat Nov 23, 2019 10:05 am
Forum: Development of MicroPython
Topic: Bypass password and key input in webrepl
Replies: 2
Views: 2422

Bypass password and key input in webrepl

Hi, I would like to bypass webrepl password input. By disabling password checking in webrepl.py def start(port=8266, password=None): stop() if password is None: try: import webrepl_cfg #_webrepl.password(webrepl_cfg.PASS) setup_conn(port, accept_conn) print("Started webrepl in normal mode") except: ...
by ajie_dirgantara
Fri Aug 24, 2018 6:51 pm
Forum: Programs, Libraries and Tools
Topic: MQTT library and thingsboard
Replies: 9
Views: 7006

Re: MQTT library and thingsboard

pythoncoder wrote:
Wed Aug 22, 2018 10:52 am
It should work if you don't supply a password to the constructor, or pass None. The default is None. This is different to "".

if I don't supply any password, it will raise exception TypeError 'NoneType' has no length at simple.py line 60
by ajie_dirgantara
Wed Aug 22, 2018 7:20 am
Forum: Programs, Libraries and Tools
Topic: MQTT library and thingsboard
Replies: 9
Views: 7006

MQTT library and thingsboard

Hi, I am using mqtt library for micropython, and when connecting to thingsboard via mqtt, it required to supply username with authentication token and password set to "" (no password). Using no password, mqtt libray is failed to connect, while if I connect to another mqtt broker with password, it wo...
by ajie_dirgantara
Thu Aug 16, 2018 8:34 am
Forum: ESP8266 boards
Topic: Frozen bytecode main.py
Replies: 6
Views: 4958

Re: Frozen bytecode main.py

ok, this is a bit out of topic, but can we also froze "webrepl_cfg.py", so it doesn't need to be configured one by one?
by ajie_dirgantara
Thu Aug 16, 2018 8:00 am
Forum: ESP8266 boards
Topic: Frozen bytecode main.py
Replies: 6
Views: 4958

Re: Frozen bytecode main.py

The resepctive code is around https://github.com/micropython/micropython/blob/master/ports/esp8266/main.c#L68 There you see, that a file called _boot.py is run from flash, and that boot.py and main.py are run form the file system. You can either change the call for boot.py and main.py into pyexec_f...
by ajie_dirgantara
Wed Aug 15, 2018 6:47 am
Forum: ESP8266 boards
Topic: Frozen bytecode main.py
Replies: 6
Views: 4958

Frozen bytecode main.py

I am on production phase and would like to froze main.py and other modules into the micropython binary file, so after it burned into flash it will run directly. is this possible?
by ajie_dirgantara
Thu Mar 15, 2018 5:03 pm
Forum: ESP32 boards
Topic: ESP32 GPRS/PPP support
Replies: 10
Views: 13633

Re: ESP32 GPRS/PPP support

It isn't working with sim5360. here is wher its fail : >>> I (404831) [PPPOS CLIENT]: AT COMMAND: [AT..] I (404865) [PPPOS CLIENT]: AT RESPONSE: [AT...OK..] I (404965) [PPPOS CLIENT]: AT COMMAND: [AT+CFUN=4..] I (405004) [PPPOS CLIENT]: AT RESPONSE: [AT+CFUN=4...OK..] I (405004) [PPPOS CLIENT]: GSM ...
by ajie_dirgantara
Thu Oct 19, 2017 3:38 am
Forum: Programs, Libraries and Tools
Topic: general uasyncio class
Replies: 1
Views: 2284

general uasyncio class

I want to make a general purpose task creator, but when I do this, it raised error : File "uasyncio/core.py", line 124, in run_forever File "uasyncio/core.py", line 88, in run_forever TypeError: 'NoneType' object is not an iterator here is the code : class c_taskMan(object): def __init__(self,init,c...
by ajie_dirgantara
Wed Oct 18, 2017 10:44 am
Forum: Programs, Libraries and Tools
Topic: uasyncio get_event_loop() methods
Replies: 2
Views: 2784

Re: uasyncio get_event_loop() methods

I think something is wrong with your installation. I see MicroPython v1.9.2-69-gcc7fece on 2017-09-12; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> >>> import uasyncio >>> loop = uasyncio.get_event_loop() >>> dir(loop) ['__init__', 'remove_reader', 'wait', '__qualname__', 'add_w...