Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending a NOTIFICATION TYPE (0x02) message without service discovery between two devices #578

Closed
jennyj1 opened this issue Nov 17, 2023 · 2 comments

Comments

@jennyj1
Copy link

jennyj1 commented Nov 17, 2023

Hello Community,

I was trying to send a NOTIFICATION type of message of message_type 0x02 without service discovery (service discovery = false). I have events and event groups as well. First of all is this kind of communication feasible between two devices?

I have tried changing the message type to notification type and sending it using app_->send(). I have tried sending it using notify and subscribe. As soon as the message type is notification type the data is not received.

I have used the subscribe-sample.cpp and notify-sample.cpp in the examples folder to achieve this making service discovery as false.

@jennyj1
Copy link
Author

jennyj1 commented Nov 17, 2023

My requirement says that I need to send a service ID with multiple method IDs. I have considered these method IDs as event IDs for my implementation.

@fcmonteiro
Copy link
Collaborator

Hello @jennyj1,
Notifications do not work without Service Discovery, this is because the whole subscription mechanism is part of the Service Discovery.

It's possible to use methods without Service Discovery ("static routing", e.g. test/payload_tests). And there as many methods than events/notification identifiers available.

In theory, it could be possible to implement "Unicast Service Discovery"(would be needed to support Service Discovery via TCP), but this is neither implemented nor planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants