This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Heartbeat in IOS app with proxy node ( node alive )

Hello,

I need to have connection status at the application level (IOS). 

I'm working with the example "light switch server proxy" where the heartbeat profile is working.

In the IOS application I have already implemented the message "heartbeat publication set message". With this message I can have my embedded module send its status periodically to 0xFFFF (all nodes). 

But the application does not receive the return status. I receive a unique return status when I configure the publication of the heartbeat.

Is it possible to configure the node to send the heartbeat value to the ios application ? It seems that the application is not in the destination nodes

My current step is : 

1. Configure the node with " CONFIG_OPCODE_HEARTBEAT_PUBLICATION_SET"

2. On the node in heartbeat.c -> 
static void heartbeat_publication_timer_cb(timestamp_t timestamp, void * p_context) is called periodically. 

3. On the app in AccessMessageParser I added the status in the switch case. But no status comes after the configuration.

Thank you very much. 

Parents Reply
  • Hello, 

    On the version 1 SetFilterTypeMessage.swift is already implemented. When I try to send a packet with ControlMessagePDU the packet is rejected by the embedded. 

    In proxy.c config_packet_in(..) is called but config_packet_decrypt(&net_meta, p_data, length, decrypted_packet) return false. 

    I have the same behaviour with my custom message : AddAddressToFilterMessage.swift

    Was version 1 working with type 0x02 (Proxy Configuration) messages ? 

    Thank you very much. 

Children
Related