Pim van Pelt

Results 12 comments of Pim van Pelt

The 32bit versus 64bit `size_t` casting can be solved by using `%zu` rather than `%lu` to cast, I learned something new today :)

I see that there is already a variants concept (https://github.com/mongoose-os/mos/commit/61481fa4e51ddccf628a9ef580ed83773e76d8d2) which adds suffixes (eg. `libmbedtls-stm32-NUCLEO-F746ZG.a`)! Can somebody help me understand how this works, and if it's a good idea to...

In button_cb() the pin argument is that of the button, not of the LED. In mgos_gpio_toggle() you should use your define PREC_LED_GPIO. Please note that the github issue tracker is...

I had it on my todo list (because I have those exact Shelly 1PM units), but I'm afraid I won't be able to get to it in the short term....

I just submitted https://github.com/mongoose-os-libs/ade7953-i2c which is for Shelly 2.5 and confirmed working on my unit: ``` esp8266_10C60B 5329 1585312791.954 2|mgos_ade7953.c:105 val=4475 hertz=49.988831 esp8266_10C60B 5330 1585312791.961 2|mgos_ade7953.c:114 val=6101779 volts=234.683807 esp8266_10C60B 5331...

By the way, Shelly 1PM seems to be based on BL 0937, not HLW8012, but they are often referenced together so likely the same interface. I will update this issue...

Confirmed success without `admin` key set. While doing this, I realised that if the user exists in the admin scope, you cannot create it in the non-admin scope. To recap:...

Related to this - when creating a user with public_key_contents and admin:false, the resulting command is incorrect: ``` crypto key import authentication rsa username dapke harddisk:/publickey_dapke.b64 ``` IOS/XR wants the...

Current state of this bugreport: - cannot create user in admin:true - cannot add key for user in admin:false

A workaround is to have two tasks, one to create the user (in non-admin) and then one to set the sshkey (in admin): ``` - name: User exists cisco.iosxr.iosxr_user: name:...