| Documentation For Arduino users

- Main Page
- Related Pages
- Modules
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
NexGauge Class Reference
Nextion Component

NexGauge component. More...

`#include <NexGauge.h>`

Inheritance diagram for NexGauge:
[legend]
Collaboration diagram for NexGauge:
[legend]

## Public Member Functions
| NexGauge (uint8_t pid, uint8_t cid, const char *name)
| Constructor. More...
bool | getValue (uint32_t *number)
| Get the value of gauge. More...
bool | setValue (uint32_t number)
| Set the value of gauge. More...
Public Member Functions inherited from NexObject
| NexObject (uint8_t pid, uint8_t cid, const char *name)
| Constructor. More...
void | printObjInfo (void)
| Print current object'address, page id, component id and name. More...

## Detailed Description

NexGauge component.

Examples:
  CompGauge.ino.

Definition at line 30 of file NexGauge.h.

## Constructor & Destructor Documentation

NexGauge::NexGauge | ( | uint8_t | pid,
|  | uint8_t | cid,
|  | const char * | name
| ) |  |

Constructor.

Parameters

  pid | - page id.
  cid | - component id.
  name | - pointer to an unique name in range of all components.

Definition at line 18 of file NexGauge.cpp.

## Member Function Documentation

bool NexGauge::getValue | ( | uint32_t * | number | ) |

Get the value of gauge.

Parameters

  number | - an output parameter to save gauge's value.

Return values

  true | - success.
  false | - failed.

Examples:
  CompGauge.ino.

Definition at line 23 of file NexGauge.cpp.

bool NexGauge::setValue | ( | uint32_t | number | ) |

Set the value of gauge.

Parameters

  number | - the value of gauge.

Return values

  true | - success.
  false | - failed.

Examples:
  CompGauge.ino.

Definition at line 32 of file NexGauge.cpp.

The documentation for this class was generated from the following files:

- NexGauge.h
- NexGauge.cpp