hw_serial()

Returns the serial number of the controller.

Syntax

planetcnc.hw_serial()

Parameters

Parameter Type Description Comment
None

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
serial = planetcnc.hw_serial()
print("Serial number:", serial)

See also