Implemented advertising function, please note that it is up to the caller of this function to setthe node boolean advertising to true and false