COVESA / vsomeip

An implementation of Scalable service-Oriented MiddlewarE over IP
Mozilla Public License 2.0
1.01k stars 647 forks source link

how to send notification message #665

Open fengmao31 opened 1 month ago

fengmao31 commented 1 month ago

vSomeip Version

v3.4.9.1

Boost Version

1.84

Environment

ubuntu20

Describe the bug

   std::shared_ptr<vsomeip::message> notification = vsomeip::runtime::get()->create_notification();
        notification->set_service(SAMPLE_SERVICE_ID);
        notification->set_instance(SAMPLE_INSTANCE_ID);
        notification->set_method(SAMPLE_EVENT_ID);
        app->send(notification);
        //app->notify(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENT_ID, payload);

I want to send the notification by message interface. However, I cannot find the way to setup event_id. I try to send message, but the client cannot get the notification.
//app->notify(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENT_ID, payload);can work.

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response