bluezDBus component in Legato 18.9.2

I trying to use code from Bluetooth sample and got error Couldn’t find component ‘bluezDBus’ .
and it is not really there /legato.framework.18.9.2.wp77xx-201906171436\resources\legato\components
I use Developer Studio 5.3.1 for Windows, Legato 18.9.2, MangOH Yellow WP7702
how to build it on Windows?

The bluezDBus component is located under components/bluezDBus in the mangOH repository. Having said that, I strongly suggest that you use the leaf packages provide by mangOH for the 0.4.0 release if you’re interested in building anything relating to bluetooth.

thank you. can you please guide me - how to do it on windows?

Are you building your software from a virtual machine running Linux? You should look at Appendix A of the mangOH Yellow Getting Started Guide which describes how to install leaf and build the mangOH software.

If there is anything that is unclear about that document, please let us know and we will try to clarify.

no, I use Developer Studio 5.3.1 for Windows and build in Windows 10 x64. Probably this is only way to do it: https://forum.legato.io/t/run-leaf-vscode-in-windows-environment-without-vm-experimental/4757 right?

That’s an interesting post. I haven’t used Windows Linux Subsystem before, but it seems like that could work. Developer Studio is end-of-life at this point. That means that as new features are added to Legato, Developer Studio won’t be aware of them. I think you are much more likely to get support on VSCode. The VSCode plugin is developed by the Legato team, so if you have specific questions about Legato and VSCode, you’re more likely to get in touch with the right people by asking on the Legato forum.

we want to use BLE in our project in Developer Studio for Windows, my idea was take code parts from BluetoothSensorTag and integrate it step by step. But now it seems that it is not really possible on pure Windows (I was thinking take mangOH-master/components/bluezDBus and copy to LEGATO_ROOT/components on windows, but it will not work, yes?) so big question is how to do that in right way? It looks like ‘bluezDBus’ is not part of latest Legato release even in ‘leaf’ tree, but it is in mangOH repository. So we should take bluezDBus from mangOH-master and copy to /compnents folder of latest Legato ?! a bit confused

You should create your own folder for your code and then within that folder you should create your_project.sdef and that system definition file can #include other SDEFs or add your own apps. Your sdef could have an apps section like this:

apps:
{
    $CURDIR/apps/MyApp/myApp
}
componentSearch:
{
    $MANGOH_ROOT/components/
}

and then your adef can have:

requires:
{
    component:
    {
        bluezDBus
    }
}

Then when you build your SDEF, you would just need to make sure that $MANGOH_ROOT is defined when you call mksys

is it possible manually add new profile/Legato version from Linux (leaf based) PC to Windows?
to be able use Developer Studio for Windows for Bluetooth development.

We have huge project in Developer Studio and must add small BLE service, it is big pain to migrate from Windows to Linux only because BLE SDK is not there…

Can’t we just add reference to our .adef file in yellow.sdef ? Why new sdef file must be created?

You can modify yellow.sdef if that’s what you prefer. In my experience, it’s easier to manage software dependencies when you keep a clear separation between your code and the upstream frameworks and libraries that you use. That way when the upstream code is updated, it’s easier to migrate to newer versions.

is it possible manually add new profile/Legato version from Linux (leaf based) PC to Windows?
to be able use Developer Studio for Windows for Bluetooth development.

We have huge project in Developer Studio and must add small BLE service, it is big pain to migrate from Windows to Linux only because BLE SDK is not there…

Hi,
Version 0.6.0 is also working for bluetooth? or it is better the 0.4.0?