Engine
core.engine.get_peer_serial
ServerRetrieves the serial of a connected peer
Syntax
local serial = core.engine.get_peer_serial(
peer_id
)Parameters
| Type | Name | Description |
|---|---|---|
int | peer_id | Peer id to query |
Returns
| Type | Name | Description |
|---|---|---|
string | bool | serial | Serial of the peer, false if the peer has no serial |
Examples
for _, peer_id in ipairs(core.engine.get_peers()) do
core.engine.print("info", peer_id, core.engine.get_peer_serial(peer_id))
end