# Using the TagoIO SDK in TagoCore to access device bucket data

**URL:** <https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325>\
**Category:** Support\
**Created:** [February 28, 2023, 11:21pm UTC](https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325 "2023-02-28T23:21:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjuno](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jjuno](https://community.tago.io/u/jjuno)\
**Post date:** [February 28, 2023, 11:21pm UTC](https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325/1 "2023-02-28T23:21:08Z")

</div>

Dear TagoIO

I have recently started working with TagoCore. So I would like to perform analysis with the data. When we do it with TagoIO we have the SDK that allows us to query the data. In TagoCore, do we also have an SDK?

---

<div class="post-metadata">

**Author:** ![freddy.minuzzi](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/freddy.minuzzi/32/415_2.png) [@freddy.minuzzi](https://community.tago.io/u/freddy.minuzzi)\
**Post date:** [March 1, 2023, 9:27pm UTC](https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325/2 "2023-03-01T21:27:41Z")

</div>

Hi Loratech S.A.C,

Yeah we do, they’re called Plugins. In order to query data from buckets you’ll need to use [these](https://tagocore.com/docs/plugins/create/core/#device-data-functions).

If you need more help just say it 🙂

---

<div class="post-metadata">

**Author:** ![jjuno](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jjuno](https://community.tago.io/u/jjuno)\
**Post date:** [March 1, 2023, 9:35pm UTC](https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325/3 "2023-03-01T21:35:46Z")

</div>

Hello Freddy Minuzzi,

Thank you for your reply. I don’t have much experience yet to be able to develop a plugin. For the moment I am trying to do it this way:

1. I am using mysql in my nodejs script to be able to connect to the tcore and tcore\_device database.

2. Once connected to my database, I’m doing some queries to get the information and analyse it.  
3. I am using nodemailer to be able to send mails of the values I am analysing.

This is the route I have taken. Any suggestions on something I should include or another way to solve it?

---

<div class="post-metadata">

**Author:** ![freddy.minuzzi](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/freddy.minuzzi/32/415_2.png) [@freddy.minuzzi](https://community.tago.io/u/freddy.minuzzi)\
**Post date:** [March 1, 2023, 9:49pm UTC](https://community.tago.io/t/using-the-tagoio-sdk-in-tagocore-to-access-device-bucket-data/1325/4 "2023-03-01T21:49:07Z")

</div>

Hey Loratech S.A.C,

The way you’re doing it will definitely work. Plugins are very simple to create if you follow this [documentation](https://tagocore.com/docs/plugins/create), another way you could do it is by using an Analysis with a script.
