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

How to modify custom Advertising packet values

Hello All,

I am working on nrf52810 board

Using sdk 14.2

I am trying to modify some bytes of advertising packet  .

I am referring the previous post as link given below

https://devzone.nordicsemi.com/f/nordic-q-a/8854/fully-custom-advertisement-data

I have modified the advertising init function as per the above link.

But i am getting warning like incompatible type.

how to solve this issue with proper advertising .

What modification is required in the code..?

Please reply if anyone having solution for this issue.

I am attaching the my main.c file please verify and let me know any changes required.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2015 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Waiting for reply..

Regards,

Rohit