Regarding to send a message from Node red to Niagara 4 framework
Steve-Mcl: battle tested http request node Hallo E1cid, I did try what you mentioned in your message. It's not working. I have attached a screenshot. Please see it. Thank you in advance. Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
msg.payload is undefined add node.warn(msg.payload); just before the line to confirm msg.payload has not been defined p.s. when posting code it is best to post text, as images are hard to read and...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
by doing msg = { "method" : "POST" ... } doesnt that mean that you destroy whatever was in msg.payload and it becomes undefined ? at the top of your code save the value of msg.payload coming from the...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
sorry to say that...It's not working.... Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
what have you tried ? E1cid: when posting code it is best to post text, as images are hard to read and copy from. wire a complete msg Debug node and show us what comes out of that Function node. do...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Good morning... I would like to tell you that I am trying to read and write data from MySQL into the Niagara 4 via Node-red with Obix driver. The data from the Niagara 4 has been read successfully...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
You are trying to put an object into a string (line 33) thats why you get val: "[object Object]" As said before by @UnborN ... UnborN: at the top of your code save the value of msg.payload coming from...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
// Code of Function node username = "obixUser"; password = "Wetec123456#@"; ipAddress = "172.30.34.212"; httpsPort = 443; authHash = Buffer.from(username+":"+password).toString("base64"); //ordSlot =...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
TIP3: In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```) ``` code goes here ``` You can edit and correct...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
// code of Function node username = "obixUser"; password = "Wetec123456#@"; ipAddress = "172.30.34.212"; httpsPort = 443; //create a base64 digest authHash =...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Try this... // Code of Function node const incomingPayload = msg.payload; //save msg.payload before you destroy the msg object below const username = "obixUser"; const password = "Wetec123456#@";...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Thank you for your message. Output is: undefined Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Hitesh1234: Output is: undefined That is not enough info to help you. Where do you see this? What was the value of msg.payload BEFORE the function node? What was does the full msg object look like...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
// **msg.payload before the function node** var name = msg.payload; name = name[0]["TEMPERATURE"]; msg.payload =name; msg.payload = msg.payload.toString(); msg.topic = null; return msg; I have...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Hitesh1234: // **msg.payload before the function node** That is your function code - not the value of msg.payload Put a debug BEFORE the function node, show us the value of msg.payload before it...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
THis is the before the function node Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Ok, one last time Add debug nodes like this... ... and give them all names (like "Debug Split Func", "debug request func", "debug http response") Show use what you get out of all three debug nodes....
View ArticleRegarding to send a message from Node red to Niagara 4 framework
This is after the function node: <str val="undefined" /> Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Hitesh1234: This is after the function node: <str val="undefined" then the incoming payload is not correct. Do as I asked in previous post (add 3 debugs) Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Thank you. I have attached. please see it. Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
very odd. 2 things... Copy all the code you have inside the "request_FromNiagra" function as it is right now & paste into a reply (remember ``` formatting) Add node.warn(["msg.payload",...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
// assign some variables username = "obixUser"; password = "Wetec123456#@"; ipAddress = "172.30.34.212"; httpsPort = 443; //create a base64 digest authHash =...
View ArticleRegarding to send a message from Node red to Niagara 4 framework
You still have an error because you DID NOT use the function code I wrote for you. Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
Thank you so much. Now I got the results. Thank you once again. Read full topic
View ArticleRegarding to send a message from Node red to Niagara 4 framework
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed. Read full topic
View Article
More Pages to Explore .....