After sending Subscribe ACK, Message is not going cyclically #936
Unanswered
ChandanM30
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
To send a message periodically, following are the APIs I am calling:
But after sending SUB-ACK, someipd is not sending the messages periodically.
Code snippet is shown below:
257 for (unsigned int providedServiceInstanceIndex = 0; providedServiceInstanceIndex < providedServiceInstances.size(); ++providedServiceInstanceIndex) {
258 const ServiceInstance & providedServiceInstance(providedServiceInstances.at(providedServiceInstanceIndex));
259
260 uint16_t serviceId(providedServiceInstance.serviceId());
261 uint16_t instanceId(providedServiceInstance.instanceId());
262 uint8_t majorVersion(providedServiceInstance.majorVersion());
263 uint32_t minorVersion(providedServiceInstance.minorVersion());
264
265 m_app->offer_service(serviceId, instanceId, majorVersion, minorVersion);
.
.
.
310 bool change_resets_cycle = false;
311 bool update_on_change = false;
312
315 m_app->offer_event(providedServiceInstance.serviceId(),
316 providedServiceInstance.instanceId(),
317 eventId,
318 eventGroups,
319 vsomeip::event_type_e::ET_EVENT,
320 std::chrono::milliseconds((unsigned int)(event.period() * 1000)),
321 change_resets_cycle,
322 update_on_change,
323 nullptr,
324 reliability);
325 std::shared_ptrvsomeip::payload payload = vsomeip::runtime::get()->create_payload();
326 payload->set_capacity(byteCount);
327 payload->set_data(defaultValue);
328 syslog(LOG_NOTICE, "execute[%i] calling notify , sid[%i], iid[%i]", 328,serviceId,instanceId);
329 m_app->notify(serviceId, instanceId, eventId, payload);
Kindly help.
Beta Was this translation helpful? Give feedback.
All reactions