anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceExternalCommunicationPort

QueryDeviceExternalCommunicationPort recherche une device de type "Communication Port" dans la liste des devices du PHX.

C++
DeviceExternalCommunicationPort* QueryDeviceExternalCommunicationPort(const xkode::lib::String& Name);
Parameters 
Description 
const xkode::lib::String& Name 
[in] Relative name of the device:
Ex: uart0 

Pointeur sur l'instance de la device recherchée. La fonction retourne NULL si la device n'a pas été trouvée.

//MODA C++ native sample code

//...
ModaCPP::DeviceExternalCommunicationPort *pDevice=robot->QueryDeviceExternalCommunicationPort("port");
if(pDevice) ...
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!