Psoc and a Lux sensor

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ChGa_3545231
Level 2
Level 2
First like given

Hi there,

this is my 2nd discussion and as I asked a bit too unprecisely in my 1st one, I want to make it better now.

I am trying to implement a lux sensor on my psoc 4 ble kit but I just don't understand how to implement the services and how to start the main.c program.

At the moment I am trying to understand the API's for the BLE module but some are just unclear and not really documented in the documents where they should be.

So can some please give some advice and help on my way to get this thing done.

I am currently putting 6-7 hours a day into this project but without help I am lost.

Thanks

Chris

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

Hello Chris,

Please refer the attached Zip file which has two projects one is Central and otherone is Peripheral project.

In the Peripheral project, BLE component is configured with custom service which has two characteristics. One characteristic has Notify which will Enable/Disable the PWM and other characteristic has Write property where we can write from central device.

In the Central project, if we know the Attribute Handle for a particular Attribute of peripheral (where we write the data)  then we can write data to Peripheral without discovering of Attributes. In this project, when we press the switch scanning is started and compares the scanreport with the device(peripheral) scan response data. Once the Peripheral is found connection will be established. If we press the switch second time Central will write the data continuously to the Peripheral (Where we can see the breathing LED in Peripheral side).

Thanks,

PSYU.

View solution in original post

0 Likes
8 Replies