IoTIoT

Compute
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Anti-DDoS
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Compass
Cloud Certificate Manager
Anti-DDoS Service
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB NoSQL
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
ServiceStage
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain Service
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
DevCloud
ProjectMan
CodeHub
CloudRelease
CloudPipeline
CloudBuild
CloudDeploy
Cloud Communications
Message & SMS
Cloud Ecosystem
Marketplace
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
enterprise-collaboration
Meeting
IoT
IoT
Intelligent EdgeFabric
DeveloperTools
SDK Developer Guide
API Request Signing Guide
Terraform
HCloud CLI
Updated at: Feb 24, 2022 GMT+08:00

Data Types

4.1 Common Data Types

Type Name

Standard Type Name

HW_INT

int

HW_UINT

unsigned int

HW_CHAR

char

HW_UCHAR

unsigned char

HW_BOOL

int

HW_ULONG

unsigned long

HW_USHORT

unsigned short

HW_MSG

void*

HW_VOID

void

HW_NULL

0

4.2 Function Return Values

Return Value Name

Value

Standard Type Name

HW_OK

0

Execution succeeded

HW_ERR

1

Execution error

HW_ERR_PTR

2

Incorrect pointer

HW_ERR_ID

3

Incorrect ID

HW_ERR_PARA

4

Incorrect parameter

HW_ERR_KEY

5

Incorrect key

HW_ERR_NOMEM

6

Insufficient memory.

HW_ERR_MAGIC

7

Reserved

HW_ERR_OVERFLOW

8

Overflow

HW_ERR_GVAR

9

Reserved

HW_ERR_POOL

10

Reserved

HW_ERR_NO_MUTEX

11

Unlocked

HW_ERR_PID

12

Reserved

HW_ERR_FILEOPEN

13

Failed to open the file

HW_ERR_FD

14

Incorrect file description

HW_ERR_SOCKET

15

Abnormal socket

HW_ERR_NOTSUPPORT

16

Unsupported

HW_ERR_NOTLOAD

17

Not loaded

HW_ERR_ENCODE

18

Encoding error

HW_ERR_DECODE

19

Decoding error

HW_ERR_CALLBACK

22

Incorrect callback function

HW_ERR_STATE

23

Incorrect status

HW_ERR_OVERTIMES

24

Exceeded maximum number of retries

HW_ERR_ENDOVER

25

Reserved

HW_ERR_ENDLINE

26

Reserved

HW_ERR_NUMBER

27

Incorrect number

HW_ERR_NOMATCH

28

Mismatched

HW_ERR_NOSTART

29

Not started

HW_ERR_NOEND

30

Not ended

HW_ERR_OVERLAP

31

Reserved

HW_ERR_DROP

32

Discarded

HW_ERR_NODATA

33

No data

HW_ERR_CRC_CHK

34

CRC failed

HW_ERR_AUTH

35

Authentication failed

HW_ERR_LENGTH

36

Incorrect length

HW_ERR_NOTALLOW

37

Operation not allowed

HW_ERR_TOKEN

38

Incorrect token

HW_ERR_NOTIPV4

39

IPv4 unsupported

HW_ERR_NOTIPV6

40

IPv6 unsupported

HW_ERR_IELOST

41

Reserved

HW_ERR_IELOST1

42

Reserved

HW_ERR_IELOST2

43

Reserved

HW_ERR_AUDIO

44

Reserved

HW_ERR_VIDEO

45

Reserved

HW_ERR_MD5

46

Reserved

HW_ERR_MD5_HA1

47

Reserved

HW_ERR_MD5_RES

48

Reserved

HW_ERR_DIALOG

49

Incorrect dialog

HW_ERR_OBJ

50

Incorrect object

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel