Yes DaleSpam, if you set the frequency of emission equal to the frequency of flashes then of course they will be and remain numerically equal as counted by observers in any frame the signal passes through. And although they will remain equal to each other, they will not remain the same over time as A accelerates with respect to any frame.
If A moves with constant velocity with respect to and away from M, the frequency detected at M will be less than the frequency emitted at A, but will remain constant as the motion between A and M is constant. This is "classical" evidence of the relative motion between A and M. In the case where this constant velocity approaches c, there will be an increasingly apparent discrepancy in the classical addition of velocities which is what the principle of relativity reconciles via the Lorentz transformation and the time dilation of A and M become important.
Unlike the "constant" example above, the "continuous" emission of an EM wave from A will, with respect to an inertial observer M, "continue" to shift toward the lower end of EM spectrum with the "continued" acceleration of A with respect to and away from M.
In this case we have the "classical" evidence of acceleration between A and M. This relative motion is also subject to the principle of relativity and will with sufficient velocity between A and M, require the principle of relativity to reconcile the limit of the instantaneous velocity between A and M.
Now we must consider the measurements of B which is "classically" at rest with respect to A and "classically" under the same acceleration as A with respect to M. This is where the difference between "flashes" and "wavelength" becomes apparent and important to the considerations of an observer at B. In the classical limit, the observer can measure a discrepancy in the rate of flashes at a very low number of flashes. If the rate of flashes emitted at A is agreed to be 1 per second, the observer at B only has to mark a single, finite, discrete event - the tick of his clock and the detection of the flash. If they do not agree, he immediately knows there is a reconciliation required to explain the event. If on the other hand he attempts to measure wavelength he must measure the incident wave from trough to trough during which time his position has "potentially" changed. If we allow the wavelength to be very short so as to "nearly" negate the potential motion of B, we approach the classical limits of measurements made by B and the relativistic effects must be considered to significantly affect his measurements.
It is because he does not know if his frame is accelerating or in a gravitational field that he cannot "assume" his motion except with respect to A. Based on the constancy of the speed of light he has no choice but to reconcile the increased rate of flashes is proof of the increased rate of the clock at A. This is true for gravitation and acceleration.
Now consider the rate of flashes and the increasing rate of motion due to acceleration with respect to M. B will as mentioned above, detect each flash as a discrete event. The number of these events will increase per unit time as marked by the clock at B. B has no choice but to reconcile the increased and increasing rate of flashes as proof of the increased and increasing rate of the clock at A. This is NOT true of similar events marked in a gravitational field. B now knows the ship is accelerating in free space, i.e. the force on the ship is inertial.