A method for frequency agility in a wireless embedded system, the wireless embedded system comprising a wireless access point, WAP, (103, 103b) and a wireless end point, WEP, (101a, 101b, 101c, 102a, 102b, 102c) communicating on a current channel, the method comprising: determining a first channel table comprising an order of available channels for the WAP (103, 103b); determining a second channel table for WEP (101a, 101b, 101c, 102a, 102b, 102c), wherein the first channel table and the second channel table list the available channels in the same order; in the event interference is detected by the WAP (103, 103b) on the current channel, determining a new current channel by testing the available channels for interference in the order listed in the first channel table; and setting a number of attempts to a maximum number of allowable retransmissions; sending a package from the WEP (101a, 101b, 101c, 102a, 102b, 102c) to the WAP (103, 103b) and waiting for a response; in the event the WEP (101a, 101b, 101c, 102a, 102b, 102c) does not receive an acknowledgement from the WAP (103, 103b) of a message sent by the WEP (101a, 101b, 101c, 102a, 102b, 102c) to the WAP (103, 103b) decrementing the number of attempts by one, if the number of attempts is zero, resending the message on each of the available channels in the order listed in the second channel table until an acknowledgement is received from the WAP (103, 103b), wherein resending the message on the available channels in the order listed in the second channel table is performed one or more times; wherein determining a new current channel by testing the available channels for interference in the order listed in the first channel table in the event interference is detected by the WAP (103, 103b) on the current channel comprises: monitoring the current channel for interference; in the event interference is detected on the current channel, determining if a number of incidences of detected interference is equal to zero; in the event the number of incidences of detected interference is equal to zero, incrementing the number of incidences of detected interference by one, waiting for a time period equal to a dwell time threshold, and continuing to monitor the current channel for interference; and in the event the number of incidences of detected interference is not equal to zero, changing the current channel to a next channel in the first channel table. determining a first channel table comprising an order of available channels for the WAP (103, 103b); determining a second channel table for WEP (101a, 101b, 101c, 102a, 102b, 102c), wherein the first channel table and the second channel table list the available channels in the same order; in the event interference is detected by the WAP (103, 103b) on the current channel, determining a new current channel by testing the available channels for interference in the order listed in the first channel table; and setting a number of attempts to a maximum number of allowable retransmissions; sending a package from the WEP (101a, 101b, 101c, 102a, 102b, 102c) to the WAP (103, 103b) and waiting for a response; in the event the WEP (101a, 101b, 101c, 102a, 102b, 102c) does not receive an acknowledgement from the WAP (103, 103b) of a message sent by the WEP (101a, 101b, 101c, 102a, 102b, 102c) to the WAP (103, 103b) decrementing the number of attempts by one, if the number of attempts is zero, resending the message on each of the available channels in the order listed in the second channel table until an acknowledgement is received from the WAP (103, 103b), wherein resending the message on the available channels in the order listed in the second channel table is performed one or more times; wherein determining a new current channel by testing the available channels for interference in the order listed in the first channel table in the event interference is detected by the WAP (103, 103b) on the current channel comprises: monitoring the current channel for interference; in the event interference is detected on the current channel, determining if a number of incidences of detected interference is equal to zero; in the event the number of incidences of detected interference is equal to zero, incrementing the number of incidences of detected interference by one, waiting for a time period equal to a dwell time threshold, and continuing to monitor the current channel for interference; and in the event the number of incidences of detected interference is not equal to zero, changing the current channel to a next channel in the first channel table. monitoring the current channel for interference; in the event interference is detected on the current channel, determining if a number of incidences of detected interference is equal to zero; in the event the number of incidences of detected interference is equal to zero, incrementing the number of incidences of detected interference by one, waiting for a time period equal to a dwell time threshold, and continuing to monitor the current channel for interference; and in the event the number of incidences of detected interference is not equal to zero, changing the current channel to a next channel in the first channel table.