# Iobroker-in/Iobroker-get read the msg.topic

**URL:** <https://discourse.nodered.org/t/iobroker-in-iobroker-get-read-the-msg-topic/3867>\
**Category:** General\
**Created:** [10 October 2018 20:47 UTC](https://discourse.nodered.org/t/iobroker-in-iobroker-get-read-the-msg-topic/3867 "2018-10-10T20:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwbusacker](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cwbusacker/32/4583_2.png) [@cwbusacker](https://discourse.nodered.org/u/cwbusacker)\
**Post date:** [10 October 2018 20:47 UTC](https://discourse.nodered.org/t/iobroker-in-iobroker-get-read-the-msg-topic/3867/1 "2018-10-10T20:47:35Z")

</div>

Hello,

I am working for a company that uses node-red to connect to iobroker and modbus to access hardware booleans and registers. Here's what my flow looks like:

timestamp/Iobroker GET/Function/CSV/SaveFile  
................/Iobroker IN/Function/CSV/SaveFile (Iobroker In connects to the same function as Iobroker get)

This is the code for the function:

var tempPay = {"topic":msg.topic, "status":msg.payload};  
msg.payload = tempPay;  
return msg;

Here's the problem: The topic I am accessing seems to be coming from timestamp when I use timestamp. Is there a way to get the topic of the Iobroker Get node when it runs and get the topic of the Iobroker In when it runs? I've used the debug node to see the complete msg, but I don't see the topic of the Iobroker Get or Iobroker IN. Any Ideas?

Thanks,  
CB

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 October 2018 21:04 UTC](https://discourse.nodered.org/t/iobroker-in-iobroker-get-read-the-msg-topic/3867/2 "2018-10-10T21:04:58Z")

</div>

> [@cwbusacker](#):
>
> I've used the debug node to see the complete msg, but I don't see the topic of the Iobroker Get or Iobroker IN

Show us what you mean with screenshots of the debug output from the lobroker nodes.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 October 2018 21:09 UTC](https://discourse.nodered.org/t/iobroker-in-iobroker-get-read-the-msg-topic/3867/3 "2018-10-10T21:09:53Z")

</div>

In the meantime, if you mean that the topic from the lobroker node is just the topic you set in the timestamp then what is the topic that you are expecting to see there?  
What is this lobroker anyway?
