# Edge Gateway Connection to Ignition Gateway

**URL:** <https://forum.inductiveautomation.com/t/edge-gateway-connection-to-ignition-gateway/66406>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 11, 2022, 6:39pm UTC](https://forum.inductiveautomation.com/t/edge-gateway-connection-to-ignition-gateway/66406 "2022-11-11T18:39:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garrett\_Stocksdale](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Garrett\_Stocksdale](https://forum.inductiveautomation.com/u/Garrett_Stocksdale)\
**Post date:** [November 11, 2022, 6:39pm UTC](https://forum.inductiveautomation.com/t/edge-gateway-connection-to-ignition-gateway/66406/1 "2022-11-11T18:39:30Z")

</div>

To keep terms consistent:  
Edge = Edge Gateway  
Ignition Gateway = Full license copy of Ignition

I know throughout the forums there has been a lot of talk about Edge not being able to have db access and run queries. I get that. However, It does have a default historian "Edge Historian" that has Store and Forward capabilities. That should be able to be sent to the Ignition Gateway for sql scriptin to be done there correct? Can I return my sql results to Edge Historian?

Right now on the Ignition **Gateway Config** \> **Network** \> **Gateway Network Settings** \> **Incoming Connections** I have Approved an Outgoing Connection from Edge.

Also setup on the Ignition Gateway in **Config** \> **Tags** \> **History** I have set up a "Remote History Provider" that is looking at Edge Historian. This as far as I can tell can only have a Status of "Read-only" When I Edit and Allow Storage it will automatically fault so I do not believe it can write to the Historian.

Currently what works:  
As an Example, I have a Gateway script based on a 'change value' event based on a tag in Edge on my Ignition Gateway, then I disconnect my Ignition Gateway, then I change values on tags on the Edge side of things, Once my Ignition Gateway is booted back up I have a table to see all of the historical values from Edge. This Works and I get the records from even when I was offline.

What Doesn't work:  
The Gateway script will only fire when back online because it only observes the last change happen. Once I come back online I will update 1 time instead of 5. Is there a way to access the other 4 points of historical data in this example or trigger the event 4 times now that the system is back up?

Edge has a Data sync tab does anything in this have to be enabled? By what I am seeing this is only for if Edge is accessing data from another gateway.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 11, 2022, 8:01pm UTC](https://forum.inductiveautomation.com/t/edge-gateway-connection-to-ignition-gateway/66406/2 "2022-11-11T20:01:35Z")

</div>

> [@Garrett\_Stocksdale](#):
>
> Is there a way to access the other 4 points of historical data in this example or trigger the event 4 times now that the system is back up?

Not from a script, no. And id doesn't matter if the remote tag is edge or full. The missed values go to directly to storage.
