apache / mynewt-documentation

Apache MyNewt Documentation
18 stars 47 forks source link

Unable to build BLE Eddystone project #79

Closed OTLabs closed 3 years ago

OTLabs commented 5 years ago

Following instructions for BLE Eddystone, https://mynewt.apache.org/latest/tutorials/ble/eddystone.html, I get following error:

$ newt build ble_tgt
Building target targets/ble_tgt

...

Error: apps/ble_app/src/main.c: In function 'ble_app_advertise':
apps/ble_app/src/main.c:49:10: error: too few arguments to function 'ble_eddystone_set_adv_data_url'
     rc = ble_eddystone_set_adv_data_url(&fields,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from repos/apache-mynewt-nimble/nimble/host/include/host/ble_hs.h:32,
                 from apps/ble_app/src/main.c:4:
repos/apache-mynewt-nimble/nimble/host/include/host/ble_eddystone.h:104:5: note: declared here
 int ble_eddystone_set_adv_data_url(struct ble_hs_adv_fields *adv_fields,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ccollins476ad commented 5 years ago

Thanks, @OTLabs. I am going to transfer this issue to the mynewt-documentation repo.

KKopyscinski commented 3 years ago

fixed by https://github.com/apache/mynewt-documentation/commit/955f9d3d2f7b078d4cf2a654c3c3416e67f77f70