salix/db/routines/srt/procedures/lastRFID_add_beta.sql

16 lines
516 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`lastRFID_add_beta`(vCode VARCHAR(20), vAntennaFk INT, vAntennaPortFk INT, vPeakRssi INT, vSeenCount INT)
BEGIN
/* Insert a new record in lastRFID table
*
* @param vCode Char string read by the antenna
* @param vAntennaFk Identifier for srt.antenna table
*/
INSERT INTO srt.lastRFID(code, antennaFk, antennaPort, peakRssi, seenCount)
VALUES(vCode, vAntennaFk, vAntennaPortFk , vPeakRssi , vSeenCount );
END$$
DELIMITER ;