Gateway TLG3901B/BLV2 Series User Manual
V2.0.4
32
December 2020
4.1.1.
LoRaScript API
LoRaScript provides a set of APIs from Node.js and third-party. Note that not all APIs or clas-
ses of a package is supported. For example,
server
class from
net
package is not allowed
in LoRaScript. Following table is the list of APIs.
Table 4-4 LoRaScript APIs
Package
Name
Type
Reference
Buffer
Buffer
Class
https://nodejs.org/docs/v0.12.7/api/
buffer.html
SlowBuffer
Class
crypto
setEngine
Function https://nodejs.org/docs/v0.12.7/api/
getCiphers
Function
getHashes
Function
createCredentials
Function
createHash
Function
Hash
Class
createHmac
Function
Hmac
Class
createCipher
Function
createCipheriv
Function
Cipher
Class
createDecipher
Function
createDecipheriv
Function
Decipher
Class
createSign
Function
Sign
Class
createVerify
Function
Verify
Class
createDiffieHellman
Function
DiffieHellman
Class
getDiffieHellman
Function
createECDH
Function
ECDH
Class
pbkdf2
Function
pbkdf2Sync
Function
randomBytes
Function