-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32 build error (switch example) #139
Comments
Hello, Could you try this example?(https://github.com/SmartThingsCommunity/st-device-sdk-c/tree/develop/example/esp32) There is README file, so you can follow the instruction. |
Now I can use "idf.py build" and I can monitor the chip(esp32) state through idf.py flash what's the problem? can you help me? |
@asurada92 Could you let me know how you made qr code? and Could you share your qr code image? |
I made qr code referencing this page "https://github.com/SmartThingsCommunity/st-device-sdk-c/blob/develop/doc/getting_started.md" Technically speaking, I use the python code below ========================================== mnid = 'FFFF' # "FFFF" is an example. you should replace it with yours
|
@asurada92 When I parsed the qrcode, it looks like below, https://qr.samsungiots.com/?m=f3WE&s=onboarding&r=STDKrF6jsWAKcys9 And I think you put "onboarding" string instead of your onboardingId. Could you check this? |
yes, you're right I put the 'onboarding' string referencing "onboardingConfig.json" file like below And I know that this onboardingconfig.json file can be downloaded from developer work space I guess I can change onboarding ID through changing "onboarding display name" isn't it? I guess this can be string thank you for your co-operation |
@asurada92 oh, Sorry for confusing you. you should put "setupId" in "onboardingId" value. So your case should be like below. In python script, We will change "onboardingId" to "setupId" in document to prevent confusion. |
Hello junyoun-kim, |
@asurada92 Is this same err? Could you let me know which err you are facing now? |
지원되지 않는 QR코드 이 QR코드로는 기기를 smartthings에 추가할 수 없습니다....) |
@asurada92 Could you check your iOS ST app's samsung account is same as DevWS account? And also could you check enabling developer mode in ST app? |
the two account is same and I also turned on the developer mode.... |
@asurada92 We found out there is problem in iOS ST APP for testing in developer mode. Sorry for letting you know this. We will let you know when fix is published. Meanwhile you can try it with Android ST app. |
@asurada92 iOS ST APP issue patch will be applied next app update. |
When does the update will be on? |
@asurada92 That will be Jan. 22. |
hello,
i’m trying to get setup for SDK for esp32 board
After all setting( setup esd-if, etc…)
when i execute build.py (ST SDK),
Toolchain path: /home/yhpark/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-97-gc752ad5 Expected to see version: crosstool-ng-1.22.0-96-g2852398 Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. Compiler version: 5.2.0 WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-97-gc752ad5 Expected to see version: crosstool-ng-1.22.0-96-g2852398 Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. Python requirements from /home/yhpark/st-device-sdk-c-ref/bsp/esp32_v3.3/requirements.txt are satisfied.
App "switch_example" version: v1.8.7-2-ga8226c6-dirty CC /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/build/main/device_control.o /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/main/device_control.c: In function 'get_button_event': /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/main/device_control.c:52:20: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint32_t {aka unsigned int}' [-Werror=format=] printf("Button event, val: %ld, tick: %lu\n", gpio_level, (uint32_t)xTaskGetTickCount()); ^ /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/main/device_control.c:52:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Werror=format=] /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/main/device_control.c:52:20: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint32_t {aka unsigned int}' [-Werror=format=] /home/yhpark/st-device-sdk-c-ref/apps/esp32/switch_example/main/device_control.c:52:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Werror=format=] cc1: some warnings being treated as errors make[1]: *** [/home/yhpark/st-device-sdk-c-ref/bsp/esp32_v3.3/make/component_wrapper.mk:290: device_control.o] Error 1 make: *** [/home/yhpark/st-device-sdk-c-ref/bsp/esp32_v3.3/make/project.mk:552: component-main-build] Error 2
Error that related with data format has occured…
how can i fix it?
The text was updated successfully, but these errors were encountered: