encodeHex

Encodes hex content.

Signatures

beacon.encodeHex(binary);

Parameters

binary

The raw binary content to encode.

Return Values

Type Notes
String The encoded ASCII-safe data.

Examples

Encode a hello world message

const encoded = beacon.encodeHex('Hello World');
beacon.debugPrint(encoded); // Outputs "48656C6C6F20576F726C64"

See Also