This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Application Specific alert Notification Service server side implementation

Hi,

As I am new to this BLE applications I am unable to get actual flow of implementing  a service to send application specific alert notifications from server which includes characteristics like NEW ALERT and UNREAD ALERT. Please make me clear about how it can be implemented? 

Thank you.

Parents Reply Children
  • Hi,

    I have already reffered beginner's tutorial related to services and characteristics implementation.But I don't have clarity on implementing alert notification service on server side.I have three different tasks in my application.All the three tasks should generate corresponding alert notifications when certain events occur.

    Please mention few steps about  implementing alert notification service on server side (which is my application in this case),so that my application will be able to send notifications to client(mobile).

    Do i need to implement database related to three tasks?If needed,let me know how proper implementation of database can be done. 

    Thank you.

       

  • Hi, 

    In most cases, the peripheral device is the server. The server device is the device that has data to transmit to the client. The most typical example is the heart rate belt, updating heart rate values to watch or a phone. 

    There is the ANCS example which is the other way around; it is the phone that has the data that it wants to transmit to the ANCS device, and therefore, the peripheral is a client device. Please see this post

    Therefore, I would like to know:

    What do you use as a central server? Do you use the phone?

    If yes, you might need to create your own android app.

    -Amanda H.

     

  • Hi,

    Sorry for the delay in reply.In my case server is nRF chip,which has data to send on to the mobile.

    Thanks & Regards,

    Swathi P

  • Hi, 

    swathi p said:
    In my case server is nRF chip,which has data to send on to the mobile.

    Then, I would suggest you take a look at the Heart Rate Application example. 

    -Amanda H. 

  • As per your suggesstion,by analyzing Heart Rate Application example I tried implementing a customized service for notification, by following battery service implementation.But,all I could do was whenever any particular interrupt/event occurs I am able to change value of the characteristics,which is of uint8_t datatype.

    But for my requirement I need to  send data on generating interrupt in the form of strings.Like I need to send "It is ready","container is empty" notifications from nRF Chip to mobile.Is it possible to get notification /pop-up on noticing any change to gatts_value.?

    Thanks & Regards,

    Swathi P

Related