コード例 #1
0
        /// <summary>
        /// Gets the configured name of this node.
        /// </summary>
        /// <returns>The name of this node</returns>
        public async Task <string> GetNodeIdentifierAsync()
        {
            NodeIdentifierResponseData response =
                await ExecuteAtQueryAsync <NodeIdentifierResponseData>(new NodeIdentifierCommand());

            return(response.Id);
        }
コード例 #2
0
ファイル: XBeeNodeBase.cs プロジェクト: pmmcmullen94/XBee
        /// <summary>
        /// Gets the configured name of this node.
        /// </summary>
        /// <returns>The name of this node</returns>
        public async Task <string> GetNodeIdentifierAsync()
        {
            NodeIdentifierResponseData response =
                await ExecuteAtQueryAsync <NodeIdentifierResponseData>(new NodeIdentifierCommand());

            var id = response.Id;

            return(id?.Replace("/0", string.Empty));
        }