@dario said in UIFlow 1.6.6:
@jesuslg123 I'm using the version 1.6.6 with both StickC and SticC Plus without any issue
Are you using Bluetooth on StickC with 1.6.6? They mentioned Bluetooth is still not supported
@dario said in UIFlow 1.6.6:
@jesuslg123 I'm using the version 1.6.6 with both StickC and SticC Plus without any issue
Are you using Bluetooth on StickC with 1.6.6? They mentioned Bluetooth is still not supported
Hellos,
That
* BLE bug fix.
mean bluetooth is now supported on UIFlow micropython firmware for M5StickC?
If yes, could you shared a simple sample please?
Thanks
Hello,
I frequently code in Mac OS and I have found that the copy paste feature does not works on the IDE Mac OS version.
It is a known behaviour, will be fixed?
Thank you.
I have created my own wifi GoPro remote controller, that it should work with all the model starting from the GoPro Hero 3+ (some changes may be required). I have tested it with the GoPro Hero 7 Silver but it should also work without any change with the white and black version.
GoPro in the latests version only enable GoPro remote support for the black models, even all of them are capable. As I don't have a black version of the GoPro I created my own controller.
I have used an StickC with the strap and Blockly, but it becoming a mess because of the size of the idea, I would like, some day, port it to Arduino or Python.
Here is the source code and instructions, I really hope you like and contribute!
Is there any official update on this topic? Is bluetooth gonna be supported? Thanks
Hi, thanks for the answer, but this is not actually helping in the issue. I may have explained wrong.
So lets say my idea is having blockly have various screen for the same app to organize the blocks in sections/pages.
Thanks
Hello,
I would like to know if there is plan to allow have programs splited in multiple files on UIFlow Editor, like a real app with clases etc. I have the feeling that the content on the editor grows to quickly and search for things can be difficult. Having multiple files with in the same app could be very helpful.
Thanks,
Jesús.
So, I could workaround this issue after some work and before close and forget this thread here forever, let me share it:
The problem:
UIFlow IDE solution:
No UIFlow IDE solution:
I hope this is useful to someone else, any suggestion is also more than welcome.
Thanks 😄
Just finished to write it down all this and I think I the failed attempt it could work using the execute code block to make the import override and keep using the UIFlow IDE 😱 That this makes sense?
New attempt
I will try it and update you.
OLD ANSWER
So, I could workaround this issue after some work and before close and forget this thread here forever, let me share it:
The problem:
Failed attempt:
- Upload and override the uRequests library include on the Stick5C firmware.
- Continue with normality
The solution:
I hope this is useful to someone else, any suggestion is also more than welcome.
Thanks :)
@ajb2k3 said in Adding external libraries via uiflow:
@jesuslg123 If you use a programs like VStudio, Thonny and mu that you can add library directly to the M5Stack
Thanks, for the this project I was using the UIFlow editor with the UI programming language, do you think I can also replace the urequest version that is using this?
Also can you share with me how to upload with Visual Studio? Thanks
Is this method valid to replace libraries like urequests
? I found a "bug" on the current implementation and I would like to replace the one that comes with the UIFlow firmware to workaround the issue. Is that possible or in any other way?
Thanks!
@robalstona said in HTTP Get - Empty response body:
I use urequests in raw python and i use something like this code below to parse response (i delete some unwanted characters by replacing it with empty string)
response = urequests.get('http://...')
if response is a json
data = json.loads(response.text.replace('STRING_TO_REPLACE', 'NEW_STRING')
other text
data = response.text.replace('STRING_TO_REPLACE', 'NEW_STRING')
The problem is that the library is breaking the response before return it to me. When doing
esponse = urequests.get('http://...')
at that point the response body is already broken, that why I need to customize the library. It in deeper level the issue.
I can not edit the post, sorry.
Sample of the response bodies:
Most common and working
See its use all the time \r\n
GoPro sample, and not working
See it ends with \n\n b'HTTP/1.0 200 OK\r\n
Thank you for your answer, after all day testing I found the issue:
The urequest library, which is used for the firmware, has an implementation that fails with the GoPro requests due to how it cleans the request body.
During the clean up process of the body its split content by if not l or l == b"\r\n":,
which probably is ok for most of the requests, but not too flexible or safe, but the GoPro use \n\n to split the Content-Type line from the actual body response.
So in order to fix the issue, I need to modify the urequests implementation, from:
if not l or l == b"\r\n":
to
if not l or l == b"\n" or l == b"\r\n":
with this change, everything works fine.
So my question is, it is possible to replace the urequests library included in the firmware with my fork/custom changes? I have seen how to load external libs, but I don't know the path for the urequest lib.
Thank you!
Hello,
I'm having a really weird issue where the response body of a GET http request is empty but it should have a JSON object.
The request is done to a GoPro camera, using the Wifi API, and it's actually works, I can see my GoPro changing the state and the request response is 200, but the body is empty.
I have been doing some testing and I found a pretty weird behaviour:
I'm totally stuck here, not sure if M5Stack firmware or urequest lib has some kind of bug or whats it is happening. Any help is more than welcome :)
Thanks!
** Solution? **