Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
NexObject Class Reference

#include <NexObject.h>

Inheritance diagram for NexObject:
NexGauge NexProgressBar NexTouch NexWaveform NexButton NexCheckbox NexCrop NexDSButton NexHotspot NexNumber NexPage NexPicture NexRadio NexScrolltext NexSlider NexText NexTimer NexVariable

Public Member Functions

 NexObject (uint8_t pid, uint8_t cid, const char *name)
 
void printObjInfo (void)
 

Protected Member Functions

uint8_t getObjPid (void)
 
uint8_t getObjCid (void)
 
const char * getObjName (void)
 

Detailed Description

Root class of all Nextion components.

Provides the essential attributes of a Nextion component and the methods accessing them. At least, Page ID(pid), Component ID(pid) and an unique name are needed for creating a component in Nexiton library.

Constructor & Destructor Documentation

NexObject::NexObject ( 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.

Member Function Documentation

void NexObject::printObjInfo ( void  )

Print current object'address, page id, component id and name.

Warning
this method does nothing, unless debug message enabled.