Skip to end of metadata
Go to start of metadata

We recommend to use lower camel case for all names except structure data types.  

NameExamplesName ConstraintsRecommended Naming Convention
thing   
thing propertytemperature, lastTemperature, latestVoltageChangeDate

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing property name'.

Name provides information about content of property: <subject>
thing methodgetTemperature, getNumberOfProcessors

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing method name'.

Name of method consists of action and subject, like <action><Subject>
thing eventtemperatureChanged, motionDetected

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing event name'.

Name looks like <value><Action (VERB+ed, irreg. VERB)>
thing triggersendAlertOnTemperatureChanged, alarmOnMotionDetected, onTemperatureChanged

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing trigger name'.

Name looks like <action><On><Event>, or <on><Event> in case of single trigger for the same event
thing schedulechangeTemperature, changeTemperatureHourly, computeValue, computeValueDaily

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing schedule name'.

Name looks like <action><Optional Details><Optional Timing Details>
thing connectionmqtt, tcp, tcpPort80

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing connection name'.

Name looks like <protocol><Optional Specs>
template   
template version   
product   
product serial number12ABC, 12-34-56, 1234ab
  1. only alphanumeric characters, _ (underscore) and - (minus)
 
structure data typeHddInformation, TemperatureStatistics, Location
  1. alphanumeric
  2. start with a capital letter
 
structure data type attributelongitude, numberOfProcessors

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - structure data type attribute name'.

Name provides information about attribute subject: <subject>
data type packagecom.mypackage.util, org.m2m.device, com.gadgetkeeper.service
  1. start with a letter
  2. only alphanumeric characters and .(dot) as a package delimiter
  3. all lower case

it's advised for companies to use their reversed Internet domain name to begin their package names - for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.

  • No labels