Obtaining the ID of the Next Device
Obtains the ID of the next device. This API is defined in c_graph.h.
Syntax
HIAI_StatusT HIAI_GetNextDeviceId(const uint32_t curDevID,uint32_t *nextDevID);
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
curDevID |
ID of the current device |
- |
nextDevID |
Pointer to the ID of the next device |
- |
Return Value
For details about the returned error codes, see "Error Codes."
Error Codes
No. |
Error Level |
Error Code |
Description |
---|---|---|---|
1 |
HIAI_INFO |
HIAI_OK |
The running is OK. |
2 |
HIAI_ERROR |
HIAI_GRAPH_GET_DEVID_ERROR |
There is an error in obtaining the device ID. |
Calling Example
uint32_t cur_dev_id = 1; uint32_t next_dev_id; HIAI_GetNextDeviceId(cur_dev_id, &next_dev_id);
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot