# Listening mode on the Photon cannot work reliably in current implementation

**URL:** <https://community.particle.io/t/listening-mode-on-the-photon-cannot-work-reliably-in-current-implementation/55789>\
**Category:** Libraries\
**Tags:** photon\
**Created:** [April 21, 2020, 9:04am UTC](https://community.particle.io/t/listening-mode-on-the-photon-cannot-work-reliably-in-current-implementation/55789 "2020-04-21T09:04:30Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![Elco](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/elco/32/3234_2.png) [@Elco](https://community.particle.io/u/Elco)\
**Post date:** [May 4, 2020, 8:08pm UTC](https://community.particle.io/t/listening-mode-on-the-photon-cannot-work-reliably-in-current-implementation/55789/25 "2020-05-04T20:08:28Z")

</div>

I know they introduced support for customizing the HTTP pages, but don’t know when this happend.  
If you use the default pages, it should be possible to use a pointer to program memory, which uses no ram at all. But the current implementation first copies all the pages to an array in RAM memory, which I think can be avoided.

Even if the users wants custom pages, I think most of the page content can still be defined as static const or constexpr and never be copied to RAM.

---

_[View the full topic](https://community.particle.io/t/listening-mode-on-the-photon-cannot-work-reliably-in-current-implementation/55789)._
