You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vplachkov edited this page Aug 3, 2012
·
8 revisions
iviLink Profile provides connectivity and any other functionality that is declared by Profile API. Profile inherits Profile API class and implements its functionality. Every Profile and Profile API has its own UID (unique string value in system).
For creating Profile do the next steps:
Create C++ class that inherits Profile API class and iviLink::Channel::CChannelHandler class
IChannelSupervisorTubeObserver class (from [IChannelSupervisorObserver.hpp]
Use macros to declare profile: IVILINK_PROFILE_BEGIN, IVILINK_PROFILE_DECLARE, IVILINK_PROFILE_NAME(), IVILINK_PROFILE_VERSION(), IVILINK_PROFILE_UID(), IVILINK_PROFILE_API_UID(), IVILINK_PROFILE_END(). example
Implement other functionality of Profile API.
To make network functionality use sendBuffer() function, bufferReceived() callback (from Channel.hpp) and CBuffer class.